Re: [PATCH v3 2/4] cxl: Update Soft Reserved resources upon region creation

From: kernel test robot
Date: Fri Apr 04 2025 - 09:59:23 EST


Hi Terry,

kernel test robot noticed the following build errors:

[auto build test ERROR on aae0594a7053c60b82621136257c8b648c67b512]

url: https://github.com/intel-lab-lkp/linux/commits/Terry-Bowman/kernel-resource-Provide-mem-region-release-for-SOFT-RESERVES/20250404-023601
base: aae0594a7053c60b82621136257c8b648c67b512
patch link: https://lore.kernel.org/r/20250403183315.286710-3-terry.bowman%40amd.com
patch subject: [PATCH v3 2/4] cxl: Update Soft Reserved resources upon region creation
config: hexagon-randconfig-001-20250404 (https://download.01.org/0day-ci/archive/20250404/202504042103.wFCRBR7K-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250404/202504042103.wFCRBR7K-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504042103.wFCRBR7K-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/cxl/core/suspend.c:7:
>> drivers/cxl/cxlpci.h:126:2: error: call to undeclared function 'pcie_capability_read_word'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
pcie_capability_read_word(pdev, PCI_EXP_LNKSTA2, &lnksta2);
^
1 error generated.


vim +/pcie_capability_read_word +126 drivers/cxl/cxlpci.h

e0c818e00443ce Robert Richter 2024-02-16 116
4d07a05397c8c1 Dave Jiang 2023-12-21 117 /*
4d07a05397c8c1 Dave Jiang 2023-12-21 118 * CXL v3.0 6.2.3 Table 6-4
4d07a05397c8c1 Dave Jiang 2023-12-21 119 * The table indicates that if PCIe Flit Mode is set, then CXL is in 256B flits
4d07a05397c8c1 Dave Jiang 2023-12-21 120 * mode, otherwise it's 68B flits mode.
4d07a05397c8c1 Dave Jiang 2023-12-21 121 */
4d07a05397c8c1 Dave Jiang 2023-12-21 122 static inline bool cxl_pci_flit_256(struct pci_dev *pdev)
4d07a05397c8c1 Dave Jiang 2023-12-21 123 {
4d07a05397c8c1 Dave Jiang 2023-12-21 124 u16 lnksta2;
4d07a05397c8c1 Dave Jiang 2023-12-21 125
4d07a05397c8c1 Dave Jiang 2023-12-21 @126 pcie_capability_read_word(pdev, PCI_EXP_LNKSTA2, &lnksta2);
4d07a05397c8c1 Dave Jiang 2023-12-21 127 return lnksta2 & PCI_EXP_LNKSTA2_FLIT;
4d07a05397c8c1 Dave Jiang 2023-12-21 128 }
4d07a05397c8c1 Dave Jiang 2023-12-21 129

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki