From patchwork Wed Aug 31 09:05:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75049 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp224555qga; Wed, 31 Aug 2016 02:07:07 -0700 (PDT) X-Received: by 10.67.7.170 with SMTP id dd10mr14820026pad.152.1472634427741; Wed, 31 Aug 2016 02:07:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si49861367pab.178.2016.08.31.02.07.05; Wed, 31 Aug 2016 02:07:07 -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 S1759627AbcHaJGy (ORCPT + 27 others); Wed, 31 Aug 2016 05:06:54 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35408 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758906AbcHaJGv (ORCPT ); Wed, 31 Aug 2016 05:06:51 -0400 Received: by mail-pa0-f54.google.com with SMTP id hb8so16758269pac.2 for ; Wed, 31 Aug 2016 02:05:53 -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=iKr6CCd7+XLwsMEfmzqRLrRdYhxkY264vfqZ4xaW8o0=; b=Qh2l96C8fi4TlgQbhd+DzmHHFSV6SrVylXSQrtKK2W2SLlpZVHIIqQbsnKjgzrv6V8 Yqvq64xvoPzpQfBVnCVvDDS6wdzJ90Zlwy0Cr9/UhpuvZIlBcrjQCkJ0xc3S5Von8ewc 02QoR7aZUxKQyH9TIRNNsLTs1pEyiL28lPaPk= 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=iKr6CCd7+XLwsMEfmzqRLrRdYhxkY264vfqZ4xaW8o0=; b=jgqY7Dd4W4qMy8r+VK6VTBjABWxwrUnkgZyZhAhuwwpYwd2CFyZfW45/eBk5OEczat pTdErIoDgOb1HLrUduKKvo7hR4q4RqvvqcluwurqaMF0I1lXw0WpBTu08SnDAa0AEifE IPBAatsCI3oXSuYaGLCSdxPk9wDleVDJ2/7pUP2LLIOlOJk3OWNqNA2Cn7Qm+uwHamq3 grCVpwHBH6N3TA7kkACJc+3lIbD4Tfbyd0uk4AiakZueSvd+dTxs7iaFC3bdar/FZKNe up3Meu4lz5xhP2MY5X9j1d5UI9NAOTBLFZgBDg6OFq/C2AopOUL5+SwPjTrtxq/b27TW FJzA== X-Gm-Message-State: AE9vXwNDh1jWrkm5m1Ba3RYFj6Rb5k8nZxXPFWYpKe/Eo0zSx7P8tfapdm/hXj9ZrNyCFSjG X-Received: by 10.66.134.36 with SMTP id ph4mr9767215pab.113.1472634352351; Wed, 31 Aug 2016 02:05:52 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.37]) by smtp.gmail.com with ESMTPSA id ty6sm63371001pac.18.2016.08.31.02.05.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 02:05:51 -0700 (PDT) From: Baoyou Xie To: kishon@ti.com, swarren@wwwdotorg.org, thierry.reding@gmail.com, gnurou@gmail.com Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] phy: mark tegra_xusb_lane_lookup_function() static Date: Wed, 31 Aug 2016 17:05:19 +0800 Message-Id: <1472634319-11886-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 building kernel with W=1: drivers/phy/tegra/xusb.c:104:5: warning: no previous prototype for 'tegra_xusb_lane_lookup_function' [-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/phy/tegra/xusb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 Acked-by: Arnd Bergmann Acked-by: Thierry Reding diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c index ec83dfd..0a372d9 100644 --- a/drivers/phy/tegra/xusb.c +++ b/drivers/phy/tegra/xusb.c @@ -101,7 +101,8 @@ tegra_xusb_pad_find_phy_node(struct tegra_xusb_pad *pad, unsigned int index) return of_find_node_by_name(np, pad->soc->lanes[index].name); } -int tegra_xusb_lane_lookup_function(struct tegra_xusb_lane *lane, +static int +tegra_xusb_lane_lookup_function(struct tegra_xusb_lane *lane, const char *function) { unsigned int i;