From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754629AbbB0BGy (ORCPT ); Thu, 26 Feb 2015 20:06:54 -0500 Received: from mga09.intel.com ([134.134.136.24]:41512 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754019AbbB0BGu (ORCPT ); Thu, 26 Feb 2015 20:06:50 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,656,1418112000"; d="scan'208";a="672400704" Date: Fri, 27 Feb 2015 09:06:19 +0800 From: kbuild test robot To: Yijing Wang Cc: kbuild-all@01.org, Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH pci] PCI: pci_bus_max_busnr() can be static Message-ID: <20150227010619.GA43777@lkp-sb04.lkp.intel.com> References: <201502270911.8Duq6eJc%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201502270911.8Duq6eJc%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/pci/pci.c:111:15: sparse: symbol 'pci_bus_max_busnr' was not declared. Should it be static? Signed-off-by: Fengguang Wu --- pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 2abac8f..51b24f3 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -108,7 +108,7 @@ static bool pcie_ari_disabled; * Given a PCI bus, returns the highest PCI bus number present in the set * including the given PCI bus and its list of child PCI buses. */ -unsigned char pci_bus_max_busnr(struct pci_bus *bus) +static unsigned char pci_bus_max_busnr(struct pci_bus *bus) { struct pci_bus *tmp; unsigned char max, n;