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: 9306725 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4329B601C0 for ; Wed, 31 Aug 2016 09:23:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35EEB28D5B for ; Wed, 31 Aug 2016 09:23:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AAF228E67; Wed, 31 Aug 2016 09:23:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A546328D5B for ; Wed, 31 Aug 2016 09:23:13 +0000 (UTC) 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Arnd Bergmann --- drivers/spi/spi-loopback-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);