From: kernel test robot <yujie.liu@intel.com>
To: Vincent Whitchurch <vincent.whitchurch@axis.com>
Cc: <llvm@lists.linux.dev>, <oe-kbuild-all@lists.linux.dev>,
<linux-kernel@vger.kernel.org>,
Richard Weinberger <richard@nod.at>
Subject: arch/um/drivers/virt-pci.c:537:21: warning: no previous prototype for function 'pcibios_get_phb_of_node'
Date: Mon, 19 Jun 2023 15:54:39 +0800 [thread overview]
Message-ID: <202306190737.Z3uYTGpX-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 45a3e24f65e90a047bef86f927ebdc4c710edaa1
commit: 314a1408b79a844dafdcde867d90de5d509409b7 um: virt-pci: implement pcibios_get_phb_of_node()
date: 4 months ago
config: um-randconfig-r002-20230619 (https://download.01.org/0day-ci/archive/20230619/202306190737.Z3uYTGpX-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230619/202306190737.Z3uYTGpX-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <yujie.liu@intel.com>
| Closes: https://lore.kernel.org/r/202306190737.Z3uYTGpX-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/um/drivers/virt-pci.c:537:21: warning: no previous prototype for function 'pcibios_get_phb_of_node' [-Wmissing-prototypes]
struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
^
arch/um/drivers/virt-pci.c:537:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
^
static
vim +/pcibios_get_phb_of_node +537 arch/um/drivers/virt-pci.c
68f5d3f3b65432 Johannes Berg 2021-03-05 535
314a1408b79a84 Vincent Whitchurch 2023-01-20 536 /* Copied from arch/x86/kernel/devicetree.c */
314a1408b79a84 Vincent Whitchurch 2023-01-20 @537 struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
314a1408b79a84 Vincent Whitchurch 2023-01-20 538 {
314a1408b79a84 Vincent Whitchurch 2023-01-20 539 struct device_node *np;
314a1408b79a84 Vincent Whitchurch 2023-01-20 540
314a1408b79a84 Vincent Whitchurch 2023-01-20 541 for_each_node_by_type(np, "pci") {
314a1408b79a84 Vincent Whitchurch 2023-01-20 542 const void *prop;
314a1408b79a84 Vincent Whitchurch 2023-01-20 543 unsigned int bus_min;
314a1408b79a84 Vincent Whitchurch 2023-01-20 544
314a1408b79a84 Vincent Whitchurch 2023-01-20 545 prop = of_get_property(np, "bus-range", NULL);
314a1408b79a84 Vincent Whitchurch 2023-01-20 546 if (!prop)
314a1408b79a84 Vincent Whitchurch 2023-01-20 547 continue;
314a1408b79a84 Vincent Whitchurch 2023-01-20 548 bus_min = be32_to_cpup(prop);
314a1408b79a84 Vincent Whitchurch 2023-01-20 549 if (bus->number == bus_min)
314a1408b79a84 Vincent Whitchurch 2023-01-20 550 return np;
314a1408b79a84 Vincent Whitchurch 2023-01-20 551 }
314a1408b79a84 Vincent Whitchurch 2023-01-20 552 return NULL;
314a1408b79a84 Vincent Whitchurch 2023-01-20 553 }
314a1408b79a84 Vincent Whitchurch 2023-01-20 554
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-06-19 7:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202306190737.Z3uYTGpX-lkp@intel.com \
--to=yujie.liu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=richard@nod.at \
--cc=vincent.whitchurch@axis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®