Re: [PATCH 1/3] hwmon: (max31827) refactor enum chips to chip info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi John,

kernel test robot noticed the following build warnings:

[auto build test WARNING on adc52dd4078067fabf1431036ba180eafd8a7eee]

url:    https://github.com/intel-lab-lkp/linux/commits/John-Erasmus-Mari-Geronimo/hwmon-max31827-refactor-enum-chips-to-chip-info/20250108-162739
base:   adc52dd4078067fabf1431036ba180eafd8a7eee
patch link:    https://lore.kernel.org/r/20250108082531.15467-2-johnerasmusmari.geronimo%40analog.com
patch subject: [PATCH 1/3] hwmon: (max31827) refactor enum chips to chip info
config: hexagon-randconfig-001-20250109 (https://download.01.org/0day-ci/archive/20250109/202501091228.9APcsnSs-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250109/202501091228.9APcsnSs-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/202501091228.9APcsnSs-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/hwmon/max31827.c:93:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct max31827_chip_info' [-Wtentative-definition-incomplete-type]
   static const struct max31827_chip_info max31827;
                                          ^
   drivers/hwmon/max31827.c:93:21: note: forward declaration of 'struct max31827_chip_info'
   static const struct max31827_chip_info max31827;
                       ^
   drivers/hwmon/max31827.c:94:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct max31827_chip_info' [-Wtentative-definition-incomplete-type]
   static const struct max31827_chip_info max31828;
                                          ^
   drivers/hwmon/max31827.c:93:21: note: forward declaration of 'struct max31827_chip_info'
   static const struct max31827_chip_info max31827;
                       ^
   drivers/hwmon/max31827.c:95:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct max31827_chip_info' [-Wtentative-definition-incomplete-type]
   static const struct max31827_chip_info max31829;
                                          ^
   drivers/hwmon/max31827.c:93:21: note: forward declaration of 'struct max31827_chip_info'
   static const struct max31827_chip_info max31827;
                       ^
   drivers/hwmon/max31827.c:96:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct max31827_chip_info' [-Wtentative-definition-incomplete-type]
   static const struct max31827_chip_info max31875;
                                          ^
   drivers/hwmon/max31827.c:93:21: note: forward declaration of 'struct max31827_chip_info'
   static const struct max31827_chip_info max31827;
                       ^
   drivers/hwmon/max31827.c:602:1: error: expected expression
   static const struct max31827_chip_info max31829 = {
   ^
   drivers/hwmon/max31827.c:677:23: error: expected '}'
   MODULE_LICENSE("GPL");
                         ^
   drivers/hwmon/max31827.c:598:51: note: to match this '{'
   static const struct max31827_chip_info max31828 = {
                                                     ^
   drivers/hwmon/max31827.c:677:23: error: expected ';' after top level declarator
   MODULE_LICENSE("GPL");
                         ^
                         ;
   4 warnings and 3 errors generated.


vim +93 drivers/hwmon/max31827.c

    91	
    92	struct max31827_state;
  > 93	static const struct max31827_chip_info max31827;
    94	static const struct max31827_chip_info max31828;
    95	static const struct max31827_chip_info max31829;
    96	static const struct max31827_chip_info max31875;
    97	

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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux