* [aegl:rdt-aet-v6 32/45] drivers/platform/x86/intel/vsec.c:486:9: error: call to undeclared function 'pci_find_next_ext_capability'; ISO C99 and later do not support implicit function declarations
@ 2025-07-02 3:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-02 3:14 UTC (permalink / raw)
To: Tony Luck; +Cc: llvm, oe-kbuild-all, linux-ia64
tree: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git rdt-aet-v6
head: 61fe13fdf97168d6695d6b1229e10053c1de27f0
commit: 216036ff9ddd573d89566851307be872a7e17a32 [32/45] x86/resctrl: Discover hardware telemetry events
config: x86_64-buildonly-randconfig-004-20250702 (https://download.01.org/0day-ci/archive/20250702/202507021136.1p4476rf-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250702/202507021136.1p4476rf-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/202507021136.1p4476rf-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/platform/x86/intel/vsec.c:486:9: error: call to undeclared function 'pci_find_next_ext_capability'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
486 | pos = pci_find_next_ext_capability(pdev, pos, PCI_EXT_CAP_ID_DVSEC);
| ^
drivers/platform/x86/intel/vsec.c:486:9: note: did you mean 'pci_find_next_capability'?
include/linux/pci.h:2060:18: note: 'pci_find_next_capability' declared here
2060 | static inline u8 pci_find_next_capability(struct pci_dev *dev, u8 post, int cap)
| ^
drivers/platform/x86/intel/vsec.c:535:9: error: call to undeclared function 'pci_find_next_ext_capability'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
535 | pos = pci_find_next_ext_capability(pdev, pos, PCI_EXT_CAP_ID_VNDR);
| ^
>> drivers/platform/x86/intel/vsec.c:844:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
844 | module_pci_driver(intel_vsec_pci_driver);
| ^
| int
>> drivers/platform/x86/intel/vsec.c:844:19: error: a parameter list without types is only allowed in a function definition
844 | module_pci_driver(intel_vsec_pci_driver);
| ^
4 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for INTEL_VSEC
Depends on [n]: X86_PLATFORM_DEVICES [=y] && PCI [=n]
Selected by [y]:
- X86_CPU_RESCTRL [=y] && X86 [=y] && (CPU_SUP_INTEL [=y] || CPU_SUP_AMD [=y]) && MISC_FILESYSTEMS [=y]
vim +/pci_find_next_ext_capability +486 drivers/platform/x86/intel/vsec.c
a3c8f906ed5fc1 David E. Box 2021-12-07 473
f21c179e1206e8 David E. Box 2022-06-29 474 static bool intel_vsec_walk_dvsec(struct pci_dev *pdev,
f21c179e1206e8 David E. Box 2022-06-29 475 struct intel_vsec_platform_info *info)
a3c8f906ed5fc1 David E. Box 2021-12-07 476 {
a3c8f906ed5fc1 David E. Box 2021-12-07 477 bool have_devices = false;
a3c8f906ed5fc1 David E. Box 2021-12-07 478 int pos = 0;
a3c8f906ed5fc1 David E. Box 2021-12-07 479
a3c8f906ed5fc1 David E. Box 2021-12-07 480 do {
a3c8f906ed5fc1 David E. Box 2021-12-07 481 struct intel_vsec_header header;
a3c8f906ed5fc1 David E. Box 2021-12-07 482 u32 table, hdr;
a3c8f906ed5fc1 David E. Box 2021-12-07 483 u16 vid;
a3c8f906ed5fc1 David E. Box 2021-12-07 484 int ret;
a3c8f906ed5fc1 David E. Box 2021-12-07 485
a3c8f906ed5fc1 David E. Box 2021-12-07 @486 pos = pci_find_next_ext_capability(pdev, pos, PCI_EXT_CAP_ID_DVSEC);
a3c8f906ed5fc1 David E. Box 2021-12-07 487 if (!pos)
a3c8f906ed5fc1 David E. Box 2021-12-07 488 break;
a3c8f906ed5fc1 David E. Box 2021-12-07 489
a3c8f906ed5fc1 David E. Box 2021-12-07 490 pci_read_config_dword(pdev, pos + PCI_DVSEC_HEADER1, &hdr);
a3c8f906ed5fc1 David E. Box 2021-12-07 491 vid = PCI_DVSEC_HEADER1_VID(hdr);
a3c8f906ed5fc1 David E. Box 2021-12-07 492 if (vid != PCI_VENDOR_ID_INTEL)
a3c8f906ed5fc1 David E. Box 2021-12-07 493 continue;
a3c8f906ed5fc1 David E. Box 2021-12-07 494
a3c8f906ed5fc1 David E. Box 2021-12-07 495 /* Support only revision 1 */
a3c8f906ed5fc1 David E. Box 2021-12-07 496 header.rev = PCI_DVSEC_HEADER1_REV(hdr);
a3c8f906ed5fc1 David E. Box 2021-12-07 497 if (header.rev != 1) {
a3c8f906ed5fc1 David E. Box 2021-12-07 498 dev_info(&pdev->dev, "Unsupported DVSEC revision %d\n", header.rev);
a3c8f906ed5fc1 David E. Box 2021-12-07 499 continue;
a3c8f906ed5fc1 David E. Box 2021-12-07 500 }
a3c8f906ed5fc1 David E. Box 2021-12-07 501
a3c8f906ed5fc1 David E. Box 2021-12-07 502 header.length = PCI_DVSEC_HEADER1_LEN(hdr);
a3c8f906ed5fc1 David E. Box 2021-12-07 503
a3c8f906ed5fc1 David E. Box 2021-12-07 504 pci_read_config_byte(pdev, pos + INTEL_DVSEC_ENTRIES, &header.num_entries);
a3c8f906ed5fc1 David E. Box 2021-12-07 505 pci_read_config_byte(pdev, pos + INTEL_DVSEC_SIZE, &header.entry_size);
a3c8f906ed5fc1 David E. Box 2021-12-07 506 pci_read_config_dword(pdev, pos + INTEL_DVSEC_TABLE, &table);
a3c8f906ed5fc1 David E. Box 2021-12-07 507
a3c8f906ed5fc1 David E. Box 2021-12-07 508 header.tbir = INTEL_DVSEC_TABLE_BAR(table);
a3c8f906ed5fc1 David E. Box 2021-12-07 509 header.offset = INTEL_DVSEC_TABLE_OFFSET(table);
a3c8f906ed5fc1 David E. Box 2021-12-07 510
a3c8f906ed5fc1 David E. Box 2021-12-07 511 pci_read_config_dword(pdev, pos + PCI_DVSEC_HEADER2, &hdr);
a3c8f906ed5fc1 David E. Box 2021-12-07 512 header.id = PCI_DVSEC_HEADER2_ID(hdr);
a3c8f906ed5fc1 David E. Box 2021-12-07 513
7e734fc397c852 David E. Box 2025-06-16 514 ret = intel_vsec_register_device(pdev, &header, info);
a3c8f906ed5fc1 David E. Box 2021-12-07 515 if (ret)
a3c8f906ed5fc1 David E. Box 2021-12-07 516 continue;
a3c8f906ed5fc1 David E. Box 2021-12-07 517
a3c8f906ed5fc1 David E. Box 2021-12-07 518 have_devices = true;
a3c8f906ed5fc1 David E. Box 2021-12-07 519 } while (true);
a3c8f906ed5fc1 David E. Box 2021-12-07 520
a3c8f906ed5fc1 David E. Box 2021-12-07 521 return have_devices;
a3c8f906ed5fc1 David E. Box 2021-12-07 522 }
a3c8f906ed5fc1 David E. Box 2021-12-07 523
:::::: The code at line 486 was first introduced by commit
:::::: a3c8f906ed5fc1d4895b5e1a5c6ad6e942d6c0ca platform/x86/intel: Move intel_pmt from MFD to Auxiliary Bus
:::::: TO: David E. Box <david.e.box@linux.intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--
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:[~2025-07-02 3:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 3:14 [aegl:rdt-aet-v6 32/45] drivers/platform/x86/intel/vsec.c:486:9: error: call to undeclared function 'pci_find_next_ext_capability'; ISO C99 and later do not support implicit function declarations kernel 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).