From: kernel test robot <lkp@intel.com>
To: jasperwang@tencent.com, kaixuxia@tencent.com,
frankjpliu@tencent.com, kasong@tencent.com,
sagazchen@tencent.com, kernelxing@tencent.com,
aurelianliu@tencent.com, jason.zeng@intel.com,
wu.zheng@intel.com, yingbao.jia@intel.com, pei.p.jia@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: arch/x86/include/asm/pci.h:133:9: error: implicit declaration of function 'to_pci_sysdata'
Date: Thu, 14 Mar 2024 03:27:44 +0800 [thread overview]
Message-ID: <202403140353.fJsWWpSD-lkp@intel.com> (raw)
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
reply other threads:[~2024-03-13 19:28 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=202403140353.fJsWWpSD-lkp@intel.com \
--to=lkp@intel.com \
--cc=aurelianliu@tencent.com \
--cc=frankjpliu@tencent.com \
--cc=jason.zeng@intel.com \
--cc=jasperwang@tencent.com \
--cc=kaixuxia@tencent.com \
--cc=kasong@tencent.com \
--cc=kernelxing@tencent.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pei.p.jia@intel.com \
--cc=sagazchen@tencent.com \
--cc=wu.zheng@intel.com \
--cc=yingbao.jia@intel.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 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.