From patchwork Mon Aug 29 12:14:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74902 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1600401qga; Mon, 29 Aug 2016 05:14:52 -0700 (PDT) X-Received: by 10.66.66.233 with SMTP id i9mr32207505pat.45.1472472892364; Mon, 29 Aug 2016 05:14:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kn7si38988359pab.163.2016.08.29.05.14.51; Mon, 29 Aug 2016 05:14:52 -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 S933053AbcH2MOn (ORCPT + 27 others); Mon, 29 Aug 2016 08:14:43 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36363 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932930AbcH2MOm (ORCPT ); Mon, 29 Aug 2016 08:14:42 -0400 Received: by mail-pa0-f42.google.com with SMTP id ci2so8701107pad.3 for ; Mon, 29 Aug 2016 05:14:41 -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=UppG8GnX5F7UzNrtD2fSCnD57eIvDpVmx6TFNbHNktQ=; b=cfm0OtslvXwRMv0CHsPrZzZ/SapOxd7tEJCqmC1/ujlDzyNPoINDOZ1jqba4jUWgFg dOYGeVbZgNEf1PxU5t20KldUJGlNZsWMeNmV3zquwLzyWA4I30Kq4YOhacgKjXTAY/ey Hh7e1CEjdmU8cLssrE0eJl01E9wlxkDulA6fQ= 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=UppG8GnX5F7UzNrtD2fSCnD57eIvDpVmx6TFNbHNktQ=; b=gTCr5YFz82GJS/cTv69iq46dgcikp9E1bZ06DNafKar8lmcLIBtTIG2s8P1pkf8T5g t12cSd06HYAKmvZZO31SMVzjXVOSAQBRZo83UbFG9MvoPDr/6b6n9O4Pg9K3BRnIp8Dv fOKsLTIS5UUcu7ymH8Y1fnGoimajW8I6X67IHrNKXTwB2r7/dZHvO3WcjmEX1Y3OXR23 wWOEUvrM6jMUKh40cdeM45B2QBjLxzrUyqiSTASh6lGhaJP2LT59B6W462/QYolXvHD8 I6a7/yEuXknTsa20OCQOMhmBUqCfwdg58rXobEUjKkYG8tERKkE3VirvX42Ew42nVSDC mj3w== X-Gm-Message-State: AE9vXwN0ADQuqedOBk8UAsf1Tu5ByVjCxwxhM4GFKNPpAgLxTmILP2IYLb3NhfUlDhGsG78C X-Received: by 10.66.131.48 with SMTP id oj16mr32230357pab.126.1472472881473; Mon, 29 Aug 2016 05:14:41 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id ve9sm49158305pac.12.2016.08.29.05.14.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 05:14:40 -0700 (PDT) From: Baoyou Xie To: isdn@linux-pingi.de, davem@davemloft.net, an.carpenter@oracle.com, mail@maciej.szmigiero.name 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 20:14:20 +0800 Message-Id: <1472472860-20336-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/mISDNipac.c:117:1: warning: no previous prototype for 'isac_empty_fifo' [-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/mISDNipac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/isdn/hardware/mISDN/mISDNipac.c b/drivers/isdn/hardware/mISDN/mISDNipac.c index aa9b6c3..8d338ba 100644 --- a/drivers/isdn/hardware/mISDN/mISDNipac.c +++ b/drivers/isdn/hardware/mISDN/mISDNipac.c @@ -113,7 +113,7 @@ isac_ph_state_bh(struct dchannel *dch) pr_debug("%s: TE newstate %x\n", isac->name, dch->state); } -void +static void isac_empty_fifo(struct isac_hw *isac, int count) { u8 *ptr;