From patchwork Wed Aug 31 09:21:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75055 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp230835qga; Wed, 31 Aug 2016 02:23:12 -0700 (PDT) X-Received: by 10.66.216.130 with SMTP id oq2mr14972686pac.89.1472635391973; Wed, 31 Aug 2016 02:23:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184si2858068pff.161.2016.08.31.02.23.11 for ; Wed, 31 Aug 2016 02:23:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759585AbcHaJWu (ORCPT ); Wed, 31 Aug 2016 05:22:50 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36568 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759510AbcHaJWr (ORCPT ); Wed, 31 Aug 2016 05:22:47 -0400 Received: by mail-pa0-f42.google.com with SMTP id fu3so9098431pad.3 for ; Wed, 31 Aug 2016 02:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=cmWqb3HVaVC2bcbvhWr6L4SyiqHjCdtFhzoQ+aznPZM=; b=I4p4nB77yVeFS9ix3UNf359OlcezYfYSDQenKY2KVqISY6FOP0I4wTU4myJIcuVbBN P3Ln6fErtETBNeq5Yx2KJHiukKt8mqel/0kwwaabGbkfrtLCqDNVeuDupgQgg48AyYvf AJPB262lWEvhnxRjAPYNAw53765o9mMsZTqQE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cmWqb3HVaVC2bcbvhWr6L4SyiqHjCdtFhzoQ+aznPZM=; b=jnZkPzlmHFb4/Ds8QvKesBh3A4qWTDnXODUj8Bl+Wt9IZ4U2/T06t+GpCKanpwdSid bmo52OzPEoeOLfygMB886Ds/n1ez5qipUq8FLTKDVuaKSIXk5jjK8Fg6oUUOJyktICu2 C0Q+rS9OBUmZlMo7qXBOnI7trqScqyxRCxXs1ASMLTrVyb7vlfd1ro/GNQJW/tSEuWyQ R1jZOrCkfcdR3tBslxhPFt/OE/cuIosmMxobUi4sluwAfCXM83TfVYnJmckBHTz1Zizp vblyCvtpD+1R3Smk2TdPxeCp+t8QuGm/lLJJpaxnO1aPjn8m77cA80nZLGb721xPV7Qc H3FQ== X-Gm-Message-State: AE9vXwM/cNYnnw9BTDPmUiFNKBLn5VTPahl2m91wtxZg3PMK5eU92pIGEusEM4dJrSTn5GHQ X-Received: by 10.66.50.199 with SMTP id e7mr15202193pao.58.1472635340221; Wed, 31 Aug 2016 02:22:20 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.37]) by smtp.gmail.com with ESMTPSA id s1sm63510489paz.47.2016.08.31.02.22.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 02:22:19 -0700 (PDT) From: Baoyou Xie To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.or, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] spi: loopback-test: mark rx_ranges_cmp() static Date: Wed, 31 Aug 2016 17:21:47 +0800 Message-Id: <1472635307-16513-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/spi/spi-loopback-test.c:408:5: warning: no previous prototype for 'rx_ranges_cmp' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/spi/spi-loopback-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Arnd Bergmann diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c index faa1b13..50e620f 100644 --- a/drivers/spi/spi-loopback-test.c +++ b/drivers/spi/spi-loopback-test.c @@ -405,7 +405,7 @@ struct rx_ranges { u8 *end; }; -int rx_ranges_cmp(void *priv, struct list_head *a, struct list_head *b) +static int rx_ranges_cmp(void *priv, struct list_head *a, struct list_head *b) { struct rx_ranges *rx_a = list_entry(a, struct rx_ranges, list); struct rx_ranges *rx_b = list_entry(b, struct rx_ranges, list);