From patchwork Mon Aug 29 12:54:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74908 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1617778qga; Mon, 29 Aug 2016 05:55:04 -0700 (PDT) X-Received: by 10.98.73.24 with SMTP id w24mr32270090pfa.27.1472475304162; Mon, 29 Aug 2016 05:55:04 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dy17si14005077pad.127.2016.08.29.05.55.02; Mon, 29 Aug 2016 05:55:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757340AbcH2MzA (ORCPT + 27 others); Mon, 29 Aug 2016 08:55:00 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35721 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756632AbcH2My6 (ORCPT ); Mon, 29 Aug 2016 08:54:58 -0400 Received: by mail-pa0-f41.google.com with SMTP id hb8so49623671pac.2 for ; Mon, 29 Aug 2016 05:54:31 -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=k6dmdCM1bHh8fu+dfFdUOCnCGnJ3zCl9QBTb4cPFTm4=; b=WlqlRF7tZBYlsHwDPe/aEdiOkHacIw5KWH+N3nTavgj1jn5SR4JfPoI4JSi/7OK7FG VRyZDPb6it6RJ/2XmRQhfuLs79duDpHezrc/tUMLWPaSFnLHf/O8OmFlgrhIbWoAE4iF e6Ih/9S9RVGivAwRYeKNWB1DefqGIf9o5roN0= 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=k6dmdCM1bHh8fu+dfFdUOCnCGnJ3zCl9QBTb4cPFTm4=; b=O0RcDFLVuiqkIoUnuvllkHHL+8kvPrpoFgRFlQFRtKQwBLbRrV3O4x2MUO2w0gf6Qs 9zMgBwTLuJOAN2wflSWbM6ClhP/qXCZ/RYdr3ZZNiQCyr5b9x4c5h70/41xHWSJImp6P WFLhxSmbyzvjPNiz7yo9gNkJTMi7/qNs4FDkuDEK1arNPGBu2ksvNN7VztXgVTiIefjd 1tCwPQxL3Xb6b+gXp9YioQvGTuAgcdIRwGSp5knjl/LEXKWtFlAX1hNUJvvG/0kQ4ktk uAL2i8hOUCEm/Zmr7U6+NOz0UcVUfB9bLjQqje6DoMGTV9OcpmfVr7MgJc9D063Al1yh Qlqw== X-Gm-Message-State: AE9vXwOGuQ/N9Bt/0wfIB5odJEai66n+2t8DdExNR5dM8Vxaa8tg5OhwL8LA09jhSAC53NLH X-Received: by 10.66.127.38 with SMTP id nd6mr32727641pab.74.1472475266334; Mon, 29 Aug 2016 05:54:26 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id ad15sm49398792pac.33.2016.08.29.05.54.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 05:54:25 -0700 (PDT) From: Baoyou Xie To: isdn@linux-pingi.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH v2] mISDN: mark symbols static where possible Date: Mon, 29 Aug 2016 20:54:08 +0800 Message-Id: <1472475248-30147-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when build kernel with W=1: drivers/isdn/hardware/mISDN/w6692.c:851:6: warning: no previous prototype for 'initW6692' [-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/isdn/hardware/mISDN/w6692.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/isdn/hardware/mISDN/w6692.c b/drivers/isdn/hardware/mISDN/w6692.c index 7416755..3b067ea 100644 --- a/drivers/isdn/hardware/mISDN/w6692.c +++ b/drivers/isdn/hardware/mISDN/w6692.c @@ -848,7 +848,7 @@ dbusy_timer_handler(struct dchannel *dch) } } -void initW6692(struct w6692_hw *card) +static void initW6692(struct w6692_hw *card) { u8 val;