* arch/x86/include/asm/pci.h:133:9: error: implicit declaration of function 'to_pci_sysdata'
@ 2024-03-13 19:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-13 19:27 UTC (permalink / raw)
To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
Cc: oe-kbuild-all
tree: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git linux-5.4/lts/5.4.119-20.0009.spr
head: c13208f42a275b32080b8b1f05865c408364ef9f
commit: e56eccbb1eace16231eae0b697e943437edb9e46 x86/PCI: Add to_pci_sysdata() helper
date: 9 months ago
config: x86_64-buildonly-randconfig-004-20240313 (https://download.01.org/0day-ci/archive/20240314/202403140353.fJsWWpSD-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240314/202403140353.fJsWWpSD-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403140353.fJsWWpSD-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/bug.h:6,
from include/linux/bug.h:5,
from include/linux/debug_locks.h:7,
from include/linux/lockdep.h:28,
from include/linux/spinlock_types.h:18,
from include/linux/mutex.h:16,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/acpi/acpi_platform.c:11:
include/linux/instrumentation.h:8: warning: "instrumentation_begin" redefined
8 | #define instrumentation_begin() ({ \
|
In file included from include/linux/ioport.h:13,
from include/linux/acpi.h:12,
from drivers/acpi/acpi_platform.c:11:
include/linux/compiler.h:139: note: this is the location of the previous definition
139 | #define instrumentation_begin() ({ \
|
In file included from include/linux/pci.h:1810,
from drivers/acpi/acpi_platform.c:17:
arch/x86/include/asm/pci.h: In function '__pcibus_to_node':
>> arch/x86/include/asm/pci.h:133:9: error: implicit declaration of function 'to_pci_sysdata' [-Werror=implicit-function-declaration]
133 | return to_pci_sysdata(bus)->node;
| ^~~~~~~~~~~~~~
>> arch/x86/include/asm/pci.h:133:28: error: invalid type argument of '->' (have 'int')
133 | return to_pci_sysdata(bus)->node;
| ^~
cc1: some warnings being treated as errors
--
In file included from arch/x86/include/asm/bug.h:6,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:10,
from drivers/acpi/osl.c:12:
include/linux/instrumentation.h:8: warning: "instrumentation_begin" redefined
8 | #define instrumentation_begin() ({ \
|
In file included from include/linux/export.h:42,
from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/acpi/osl.c:12:
include/linux/compiler.h:139: note: this is the location of the previous definition
139 | #define instrumentation_begin() ({ \
|
In file included from include/linux/pci.h:1810,
from drivers/acpi/osl.c:18:
arch/x86/include/asm/pci.h: In function '__pcibus_to_node':
>> arch/x86/include/asm/pci.h:133:9: error: implicit declaration of function 'to_pci_sysdata' [-Werror=implicit-function-declaration]
133 | return to_pci_sysdata(bus)->node;
| ^~~~~~~~~~~~~~
>> arch/x86/include/asm/pci.h:133:28: error: invalid type argument of '->' (have 'int')
133 | return to_pci_sysdata(bus)->node;
| ^~
drivers/acpi/osl.c: In function 'acpi_os_vprintf':
drivers/acpi/osl.c:151:2: warning: function 'acpi_os_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
151 | vsprintf(buffer, fmt, args);
| ^~~~~~~~
cc1: some warnings being treated as errors
vim +/to_pci_sysdata +133 arch/x86/include/asm/pci.h
128
129 #ifdef CONFIG_NUMA
130 /* Returns the node based on pci bus */
131 static inline int __pcibus_to_node(const struct pci_bus *bus)
132 {
> 133 return to_pci_sysdata(bus)->node;
134 }
135
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-13 19:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-13 19:27 arch/x86/include/asm/pci.h:133:9: error: implicit declaration of function 'to_pci_sysdata' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.