CC: kbuild-...@lists.01.org
BCC: l...@intel.com
CC: linux-ker...@vger.kernel.org
TO: Eugen Hristev <eugen.hris...@microchip.com>
CC: Jonathan Cameron <jonathan.came...@huawei.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   eaea45fc0e7b6ae439526b4a41d91230c8517336
commit: 8940de2e48902e95b588b6244d5a1b61a4d75c4a iio: adc: at91-sama5d2_adc: 
convert to platform specific data structures
date:   8 months ago
:::::: branch date: 10 hours ago
:::::: commit date: 8 months ago
compiler: m68k-linux-gcc (GCC) 11.3.0
reproduce (cppcheck warning):
        # apt-get install cppcheck
        git checkout 8940de2e48902e95b588b6244d5a1b61a4d75c4a
        cppcheck --quiet --enable=style,performance,portability --template=gcc 
FILE

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <l...@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/iio/adc/at91-sama5d2_adc.c:530:46: warning: syntax error 
>> [syntaxError]
    .nr_channels = AT91_SAMA5D2_SINGLE_CHAN_CNT +
                                                ^

vim +530 drivers/iio/adc/at91-sama5d2_adc.c

8940de2e48902e Eugen Hristev 2021-09-01  524  
8940de2e48902e Eugen Hristev 2021-09-01  525  static const struct 
at91_adc_platform sama5d2_platform = {
8940de2e48902e Eugen Hristev 2021-09-01  526    .layout = &sama5d2_layout,
8940de2e48902e Eugen Hristev 2021-09-01  527    .adc_channels = 
&at91_sama5d2_adc_channels,
8940de2e48902e Eugen Hristev 2021-09-01  528  #define 
AT91_SAMA5D2_SINGLE_CHAN_CNT 12
8940de2e48902e Eugen Hristev 2021-09-01  529  #define 
AT91_SAMA5D2_DIFF_CHAN_CNT 6
8940de2e48902e Eugen Hristev 2021-09-01 @530    .nr_channels = 
AT91_SAMA5D2_SINGLE_CHAN_CNT +
8940de2e48902e Eugen Hristev 2021-09-01  531                   
AT91_SAMA5D2_DIFF_CHAN_CNT,
8940de2e48902e Eugen Hristev 2021-09-01  532  #define 
AT91_SAMA5D2_TOUCH_X_CHAN_IDX     (AT91_SAMA5D2_SINGLE_CHAN_CNT + \
8940de2e48902e Eugen Hristev 2021-09-01  533                                    
AT91_SAMA5D2_DIFF_CHAN_CNT * 2)
8940de2e48902e Eugen Hristev 2021-09-01  534    .touch_chan_x = 
AT91_SAMA5D2_TOUCH_X_CHAN_IDX,
8940de2e48902e Eugen Hristev 2021-09-01  535  #define 
AT91_SAMA5D2_TOUCH_Y_CHAN_IDX     (AT91_SAMA5D2_TOUCH_X_CHAN_IDX + 1)
8940de2e48902e Eugen Hristev 2021-09-01  536    .touch_chan_y = 
AT91_SAMA5D2_TOUCH_Y_CHAN_IDX,
8940de2e48902e Eugen Hristev 2021-09-01  537  #define 
AT91_SAMA5D2_TOUCH_P_CHAN_IDX     (AT91_SAMA5D2_TOUCH_Y_CHAN_IDX + 1)
8940de2e48902e Eugen Hristev 2021-09-01  538    .touch_chan_p = 
AT91_SAMA5D2_TOUCH_P_CHAN_IDX,
8940de2e48902e Eugen Hristev 2021-09-01  539  #define AT91_SAMA5D2_MAX_CHAN_IDX 
AT91_SAMA5D2_TOUCH_P_CHAN_IDX
8940de2e48902e Eugen Hristev 2021-09-01  540    .max_channels = 
ARRAY_SIZE(at91_sama5d2_adc_channels),
8940de2e48902e Eugen Hristev 2021-09-01  541    .max_index = 
AT91_SAMA5D2_MAX_CHAN_IDX,
8940de2e48902e Eugen Hristev 2021-09-01  542  #define AT91_SAMA5D2_HW_TRIG_CNT  
3
8940de2e48902e Eugen Hristev 2021-09-01  543    .hw_trig_cnt = 
AT91_SAMA5D2_HW_TRIG_CNT,
5e1a1da0f8c914 Eugen Hristev 2017-06-15  544  };
5e1a1da0f8c914 Eugen Hristev 2017-06-15  545  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to