public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [andi-shyti:i2c/i2c-host 18/19] drivers/hwmon/jc42.c:626:12: error: use of undeclared identifier 'I2C_CLASS_SPD'
@ 2024-04-17  5:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-17  5:14 UTC (permalink / raw)
  To: Heiner Kallweit; +Cc: llvm, oe-kbuild-all, Andi Shyti

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git i2c/i2c-host
head:   08944c074592041873f1cb3e5be5fc3fd4cdc3ad
commit: f7ece6320f6f028873649b9aa836c5bc5abf2cb3 [18/19] i2c: Remove I2C_CLASS_SPD
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20240417/202404171340.VkZff1Jq-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7089c359a3845323f6f30c44a47dd901f2edfe63)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240417/202404171340.VkZff1Jq-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/202404171340.VkZff1Jq-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/hwmon/jc42.c:18:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:328:
   include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     547 |         val = __raw_readb(PCI_IOBASE + addr);
         |                           ~~~~~~~~~~ ^
   include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     560 |         val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
      37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
         |                                                   ^
   In file included from drivers/hwmon/jc42.c:18:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:328:
   include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     573 |         val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
      35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
         |                                                   ^
   In file included from drivers/hwmon/jc42.c:18:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:328:
   include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     584 |         __raw_writeb(value, PCI_IOBASE + addr);
         |                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     594 |         __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     604 |         __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   In file included from drivers/hwmon/jc42.c:18:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:21:
   In file included from include/linux/mm.h:2208:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> drivers/hwmon/jc42.c:626:12: error: use of undeclared identifier 'I2C_CLASS_SPD'
     626 |         .class          = I2C_CLASS_SPD | I2C_CLASS_HWMON,
         |                           ^
   7 warnings and 1 error generated.


vim +/I2C_CLASS_SPD +626 drivers/hwmon/jc42.c

803deccec25133 Guenter Roeck    2016-07-02  624  
d397276b0c833b Guenter Roeck    2014-04-15  625  static struct i2c_driver jc42_driver = {
eacc48ce3accfc Alison Schofield 2016-07-04 @626  	.class		= I2C_CLASS_SPD | I2C_CLASS_HWMON,
d397276b0c833b Guenter Roeck    2014-04-15  627  	.driver = {
d397276b0c833b Guenter Roeck    2014-04-15  628  		.name	= "jc42",
d397276b0c833b Guenter Roeck    2014-04-15  629  		.pm = JC42_DEV_PM_OPS,
803deccec25133 Guenter Roeck    2016-07-02  630  		.of_match_table = of_match_ptr(jc42_of_ids),
d397276b0c833b Guenter Roeck    2014-04-15  631  	},
1975d167869ef0 Uwe Kleine-König 2023-05-05  632  	.probe		= jc42_probe,
d397276b0c833b Guenter Roeck    2014-04-15  633  	.remove		= jc42_remove,
d397276b0c833b Guenter Roeck    2014-04-15  634  	.id_table	= jc42_id,
d397276b0c833b Guenter Roeck    2014-04-15  635  	.detect		= jc42_detect,
d397276b0c833b Guenter Roeck    2014-04-15  636  	.address_list	= normal_i2c,
d397276b0c833b Guenter Roeck    2014-04-15  637  };
4453d7364d3b1f Guenter Roeck    2010-08-09  638  

:::::: The code at line 626 was first introduced by commit
:::::: eacc48ce3accfc9092594794b009a40f91331b0e hwmon: (jc42) Add I2C_CLASS_HWMON to detection class

:::::: TO: Alison Schofield <amsfield22@gmail.com>
:::::: CC: Guenter Roeck <linux@roeck-us.net>

-- 
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:[~2024-04-17  5:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-17  5:14 [andi-shyti:i2c/i2c-host 18/19] drivers/hwmon/jc42.c:626:12: error: use of undeclared identifier 'I2C_CLASS_SPD' 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