[openeuler:openEuler-1.0-LTS 1652/1652] drivers/gpio/gpio-phytium-core.c:346:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_SMP'

tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5ae76523ccf96ec8b8d73d541e305bf15b6b697e commit: 00711bad7e372a30c4975ba43811ffa666aff0e1 [1652/1652] gpio: add phytium gpio driver config: x86_64-randconfig-122-20250527 (https://download.01.org/0day-ci/archive/20250527/202505270343.9khwGBNH-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250527/202505270343.9khwGBNH-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/202505270343.9khwGBNH-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
drivers/gpio/gpio-phytium-core.c:346:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_SMP' drivers/gpio/gpio-phytium-core.c:346:5: warning: "CONFIG_SMP" is not defined, evaluates to 0 [-Wundef] 346 | #if CONFIG_SMP | ^~~~~~~~~~
vim +/CONFIG_SMP +346 drivers/gpio/gpio-phytium-core.c 345
346 #if CONFIG_SMP 347 int 348 phytium_gpio_irq_set_affinity(struct irq_data *d, 349 const struct cpumask *mask_val, bool force) 350 { 351 struct gpio_chip *chip_data = irq_data_get_irq_chip_data(d); 352 struct irq_chip *chip = irq_get_chip(chip_data->irq.num_parents); 353 struct irq_data *data = irq_get_irq_data(chip_data->irq.num_parents); 354 355 if (chip && chip->irq_set_affinity) 356 return chip->irq_set_affinity(data, mask_val, force); 357 358 return -EINVAL; 359 } 360 EXPORT_SYMBOL_GPL(phytium_gpio_irq_set_affinity); 361 #endif 362
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot