tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next head: de3a46504a58426f1c91117be601ae270180bc93 commit: 3ee265f75ce831f66bce6c7facdb0499264cc5bb [28/31] hwmon: (npcm750-pwm-fan) replace spin_lock_irqsave by spin_lock in hard IRQ config: arm64-randconfig-r025-20210209 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/?id=3ee265f75ce831f66bce6c7facdb0499264cc5bb git remote add hwmon https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git git fetch --no-tags hwmon hwmon-next git checkout 3ee265f75ce831f66bce6c7facdb0499264cc5bb # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> drivers/hwmon/npcm750-pwm-fan.c:494:51: error: use of undeclared identifier 'flags'; did you mean 'flag'? spin_unlock_irqrestore(&data->fan_lock[module], flags); ^~~~~ flag drivers/hwmon/npcm750-pwm-fan.c:485:5: note: 'flag' declared here u8 flag; ^ 1 error generated. vim +494 drivers/hwmon/npcm750-pwm-fan.c f1fd4a4db77703 Tomer Maimon 2018-07-04 480 f1fd4a4db77703 Tomer Maimon 2018-07-04 481 static irqreturn_t npcm7xx_fan_isr(int irq, void *dev_id) f1fd4a4db77703 Tomer Maimon 2018-07-04 482 { f1fd4a4db77703 Tomer Maimon 2018-07-04 483 struct npcm7xx_pwm_fan_data *data = dev_id; f1fd4a4db77703 Tomer Maimon 2018-07-04 484 int module; f1fd4a4db77703 Tomer Maimon 2018-07-04 485 u8 flag; f1fd4a4db77703 Tomer Maimon 2018-07-04 486 f1fd4a4db77703 Tomer Maimon 2018-07-04 487 module = irq - data->fan_irq[0]; 3ee265f75ce831 Tian Tao 2021-02-07 488 spin_lock(&data->fan_lock[module]); f1fd4a4db77703 Tomer Maimon 2018-07-04 489 f1fd4a4db77703 Tomer Maimon 2018-07-04 490 flag = ioread8(NPCM7XX_FAN_REG_TICTRL(data->fan_base, module)); f1fd4a4db77703 Tomer Maimon 2018-07-04 491 if (flag > 0) { f1fd4a4db77703 Tomer Maimon 2018-07-04 492 npcm7xx_check_cmp(data, module, NPCM7XX_FAN_CMPA, flag); f1fd4a4db77703 Tomer Maimon 2018-07-04 493 npcm7xx_check_cmp(data, module, NPCM7XX_FAN_CMPB, flag); f1fd4a4db77703 Tomer Maimon 2018-07-04 @494 spin_unlock_irqrestore(&data->fan_lock[module], flags); f1fd4a4db77703 Tomer Maimon 2018-07-04 495 return IRQ_HANDLED; f1fd4a4db77703 Tomer Maimon 2018-07-04 496 } f1fd4a4db77703 Tomer Maimon 2018-07-04 497 3ee265f75ce831 Tian Tao 2021-02-07 498 spin_unlock(&data->fan_lock[module]); f1fd4a4db77703 Tomer Maimon 2018-07-04 499 f1fd4a4db77703 Tomer Maimon 2018-07-04 500 return IRQ_NONE; f1fd4a4db77703 Tomer Maimon 2018-07-04 501 } f1fd4a4db77703 Tomer Maimon 2018-07-04 502 :::::: The code at line 494 was first introduced by commit :::::: f1fd4a4db777030a2542701fb0d3a261d4472d6d hwmon: Add NPCM7xx PWM and Fan driver :::::: TO: Tomer Maimon <tmaimon77@xxxxxxxxx> :::::: CC: Guenter Roeck <linux@xxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip