From patchwork Mon Aug 29 11:59:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74900 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1592488qga; Mon, 29 Aug 2016 05:00:08 -0700 (PDT) X-Received: by 10.98.133.10 with SMTP id u10mr31540400pfd.134.1472472006091; Mon, 29 Aug 2016 05:00:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si38873628pfi.100.2016.08.29.05.00.03; Mon, 29 Aug 2016 05:00:06 -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 S932882AbcH2MAB (ORCPT + 27 others); Mon, 29 Aug 2016 08:00:01 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35259 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932523AbcH2L77 (ORCPT ); Mon, 29 Aug 2016 07:59:59 -0400 Received: by mail-pa0-f41.google.com with SMTP id hb8so49228406pac.2 for ; Mon, 29 Aug 2016 04:59:59 -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=a8MKA8dC2RZ4JrVTS2b+E5kpsP/wj0PEjJZdlwx5eCI=; b=WY+2OzUhtp8PBSg1aOodgy59PtZC3S5D0HPcN9J+/NH7G4ABBRepB3F9grD77K/un9 +ziRnagpJn6qEFeBlK+Psh6x2JvJ/fNIyLoL1Thz5aD0VETBQN4v/wzi7fwzwtwTWHZl DgqMlCOP1s4VGwfe7MivQgj7sgZM2d4ziAIkI= 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=a8MKA8dC2RZ4JrVTS2b+E5kpsP/wj0PEjJZdlwx5eCI=; b=e1pgu6dNZ3Z6wdCnwz4SFEnZ99CODW9s6a5G9kuzmC7DehWI25ktBNt81GCfbG1hqB bdgDAPlg8H5EAzmrvombNvKxUZH6nA70xvwwGa+JYGrEq0re9ioBUFWIeXaqSGOiovLW PFjVhsfl1dSrnbPltsFdJhlu+klXzrFCoxBv4iVonEN1knfcJ1j456PYMAfymsyzSdVV cNbQWbvdvxzhNOt/BZ7jasIj+bKy86dBnu6OUxy0jUQKTiOqBifp+BqLZAmUQAVEt+2B tsCI9VLAWniJU6VpoGYtlujjuefuk5L1ieEDJ0vI1QMfYHtQ7u00tfg8YY1RtAv6S+Ys FaVA== X-Gm-Message-State: AE9vXwMm4y/h/xpOTwp0mHD8Q2ZmnQZjRTzO86oi1jVQHdkHnIU/Qp7+o3801LWu/noLAyPp X-Received: by 10.66.237.71 with SMTP id va7mr31945350pac.124.1472471998848; Mon, 29 Aug 2016 04:59:58 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id vt10sm48980493pab.43.2016.08.29.04.59.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 04:59:58 -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] mISDN: mark symbols static where possible Date: Mon, 29 Aug 2016 19:59:33 +0800 Message-Id: <1472471973-23041-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 biuld 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;