Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH 1/3] hwmon: (max31827) refactor enum chips to chip info
       [not found] <20250108082531.15467-2-johnerasmusmari.geronimo@analog.com>
@ 2025-01-09  5:05 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-09  5:05 UTC (permalink / raw)
  To: John Erasmus Mari Geronimo, devicetree, linux-hwmon, linux-kernel,
	linux-doc
  Cc: llvm, oe-kbuild-all, Jean Delvare, Guenter Roeck, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jonathan Corbet

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501091228.9APcsnSs-lkp@intel.com/

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-09  5:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250108082531.15467-2-johnerasmusmari.geronimo@analog.com>
2025-01-09  5:05 ` [PATCH 1/3] hwmon: (max31827) refactor enum chips to chip info kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox