[openeuler:openEuler-1.0-LTS 1941/1941] drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Function parameter or member 'bus_no' not described in 'isst_if_get_pci_dev'
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: a29d78a07cb2dc27dd74e4c2642ff110fd6528ea [1941/1941] Intel: platform/x86: ISST: Store per CPU information config: x86_64-randconfig-101-20251212 (https://download.01.org/0day-ci/archive/20251214/202512140153.vqXFeYh3-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140153.vqXFeYh3-lkp@i...) 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/202512140153.vqXFeYh3-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from <built-in>:2: In file included from include/linux/compiler_types.h:59: include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 20 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:353:9: note: previous definition is here 353 | #define __SANITIZE_ADDRESS__ 1 | ^ 1 warning generated.
drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Function parameter or member 'bus_no' not described in 'isst_if_get_pci_dev' drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Excess function parameter 'bus_number' description in 'isst_if_get_pci_dev'
vim +66 drivers/platform/x86/intel_speed_select_if/isst_if_common.c 52 53 /** 54 * isst_if_get_pci_dev() - Get the PCI device instance for a CPU 55 * @cpu: Logical CPU number. 56 * @bus_number: The bus number assigned by the hardware. 57 * @dev: The device number assigned by the hardware. 58 * @fn: The function number assigned by the hardware. 59 * 60 * Using cached bus information, find out the PCI device for a bus number, 61 * device and function. 62 * 63 * Return: Return pci_dev pointer or NULL. 64 */ 65 struct pci_dev *isst_if_get_pci_dev(int cpu, int bus_no, int dev, int fn)
66 { 67 int bus_number; 68 69 if (bus_no < 0 || bus_no > 1 || cpu < 0 || cpu >= nr_cpu_ids || 70 cpu >= num_possible_cpus()) 71 return NULL; 72 73 bus_number = isst_cpu_info[cpu].bus_info[bus_no]; 74 if (bus_number < 0) 75 return NULL; 76 77 return pci_get_domain_bus_and_slot(0, bus_number, PCI_DEVFN(dev, fn)); 78 } 79 EXPORT_SYMBOL_GPL(isst_if_get_pci_dev); 80
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot