Re: [PATCH v2 1/1] Added tilt interrupt support in inv_icm42600

From: Hiten Chauhan
Date: Mon Nov 20 2023 - 09:05:47 EST


Hi @kernel test robot

I have already updated suggestions in my patch v3 "[PATCH v3] Added tilt interrupt support in inv_icm42600"


From: kernel test robot <lkp@xxxxxxxxx>
Sent: Monday, November 20, 2023 7:24 PM
To: Hiten Chauhan <hiten.chauhan@xxxxxxxxxxxxxxxxx>; jmaneyrol@xxxxxxxxxxxxxx <jmaneyrol@xxxxxxxxxxxxxx>; jic23@xxxxxxxxxx <jic23@xxxxxxxxxx>; lars@xxxxxxxxxx <lars@xxxxxxxxxx>; linux-iio@xxxxxxxxxxxxxxx <linux-iio@xxxxxxxxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx <linux-kernel@xxxxxxxxxxxxxxx>
Cc: oe-kbuild-all@xxxxxxxxxxxxxxx <oe-kbuild-all@xxxxxxxxxxxxxxx>; Hiten Chauhan <hiten.chauhan@xxxxxxxxxxxxxxxxx>
Subject: Re: [PATCH v2 1/1] Added tilt interrupt support in inv_icm42600
 
Hi Hiten,

kernel test robot noticed the following build errors:

[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v6.7-rc2 next-20231120]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Hiten-Chauhan/Added-tilt-interrupt-support-in-inv_icm42600/20231116-214808
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link:    https://lore.kernel.org/r/20231116134528.21467-1-hiten.chauhan%40siliconsignals.io
patch subject: [PATCH v2 1/1] Added tilt interrupt support in inv_icm42600
config: i386-randconfig-062-20231120 (https://download.01.org/0day-ci/archive/20231120/202311202146.D4gNcBnT-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231120/202311202146.D4gNcBnT-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/202311202146.D4gNcBnT-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:116:39: error: too many arguments provided to function-like macro invocation
   static DEVICE_ATTR_RW(tilt_interrupt, 0644,
                                         ^
   include/linux/device.h:179:9: note: macro 'DEVICE_ATTR_RW' defined here
   #define DEVICE_ATTR_RW(_name) \
           ^
>> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:116:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   static DEVICE_ATTR_RW(tilt_interrupt, 0644,
   ~~~~~~ ^
   int
>> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:120:3: error: use of undeclared identifier 'dev_attr_tilt_interrupt'
           &dev_attr_tilt_interrupt.attr,
            ^
   3 errors generated.


vim +116 drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c

   115 
 > 116   static DEVICE_ATTR_RW(tilt_interrupt, 0644,
   117                     tilt_interrupt_show, tilt_interrupt_store);
   118 
   119  static struct attribute *icm42605_attrs[] = {
 > 120           &dev_attr_tilt_interrupt.attr,
   121          NULL,
   122  };
   123 

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