* [pci:pci/enumeration 21/30] drivers/pci/pci.c:111:15: sparse: symbol 'pci_bus_max_busnr' was not declared. Should it be static?
@ 2015-02-27 1:06 kbuild test robot
2015-02-27 1:06 ` [PATCH pci] PCI: pci_bus_max_busnr() can be static kbuild test robot
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2015-02-27 1:06 UTC (permalink / raw)
To: Yijing Wang; +Cc: kbuild-all, Bjorn Helgaas, linux-pci, linux-kernel
tree: git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/enumeration
head: 84dad4dda42cbf93ecf029c5a6b0af35305d6f75
commit: 762f920d602e28bf32d27003c93ca05244957aff [21/30] PCI: Introduce pci_bus_child_max_busnr()
reproduce:
# apt-get install sparse
git checkout 762f920d602e28bf32d27003c93ca05244957aff
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> drivers/pci/pci.c:111:15: sparse: symbol 'pci_bus_max_busnr' was not declared. Should it be static?
drivers/pci/pci.c:579:13: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:579:21: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:579:31: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:579:39: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:586:35: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:586:54: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:587:19: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:587:37: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:609:23: sparse: invalid assignment: |=
drivers/pci/pci.c:609:23: left side has type unsigned short
drivers/pci/pci.c:609:23: right side has type restricted pci_power_t
drivers/pci/pci.c:614:57: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:634:28: sparse: incorrect type in assignment (different base types)
drivers/pci/pci.c:634:28: expected restricted pci_power_t [usertype] current_state
drivers/pci/pci.c:634:28: got int
drivers/pci/pci.c:683:36: sparse: incorrect type in assignment (different base types)
drivers/pci/pci.c:683:36: expected restricted pci_power_t [usertype] current_state
drivers/pci/pci.c:683:36: got int
drivers/pci/pci.c:810:13: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:810:22: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:840:13: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:840:21: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:842:18: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:842:26: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:860:13: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:860:22: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:867:46: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:867:54: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1309:36: sparse: incorrect type in assignment (different base types)
drivers/pci/pci.c:1309:36: expected restricted pci_power_t [usertype] current_state
drivers/pci/pci.c:1309:36: got int
drivers/pci/pci.c:1685:44: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1920:61: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1921:45: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:3265:13: sparse: invalid assignment: |=
drivers/pci/pci.c:3265:13: left side has type unsigned short
drivers/pci/pci.c:3265:13: right side has type restricted pci_power_t
drivers/pci/pci.c:3270:13: sparse: invalid assignment: |=
drivers/pci/pci.c:3270:13: left side has type unsigned short
drivers/pci/pci.c:3270:13: right side has type restricted pci_power_t
drivers/pci/pci.c:4501:1: sparse: symbol 'bus_attr_resource_alignment' was not declared. Should it be static?
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH pci] PCI: pci_bus_max_busnr() can be static
2015-02-27 1:06 [pci:pci/enumeration 21/30] drivers/pci/pci.c:111:15: sparse: symbol 'pci_bus_max_busnr' was not declared. Should it be static? kbuild test robot
@ 2015-02-27 1:06 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2015-02-27 1:06 UTC (permalink / raw)
To: Yijing Wang; +Cc: kbuild-all, Bjorn Helgaas, linux-pci, linux-kernel
drivers/pci/pci.c:111:15: sparse: symbol 'pci_bus_max_busnr' was not declared. Should it be static?
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-27 1:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 1:06 [pci:pci/enumeration 21/30] drivers/pci/pci.c:111:15: sparse: symbol 'pci_bus_max_busnr' was not declared. Should it be static? kbuild test robot
2015-02-27 1:06 ` [PATCH pci] PCI: pci_bus_max_busnr() can be static kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).