linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6839/7959] drivers/hwmon/nct6775-platform.c:199:9: sparse: sparse: incompatible types in conditional expression (different base types):
@ 2022-04-30 14:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-30 14:49 UTC (permalink / raw)
  To: Zev Weiss; +Cc: kbuild-all, Linux Memory Management List, Guenter Roeck

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   5469f0c06732a077c70a759a81f2a1f00b277694
commit: 0a1c321f21d95bb26947d7d2f8e009fa70f7e79c [6839/7959] hwmon: (nct6775) Split core and platform driver
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220430/202204302251.93Z53LgL-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0a1c321f21d95bb26947d7d2f8e009fa70f7e79c
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 0a1c321f21d95bb26947d7d2f8e009fa70f7e79c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash drivers/hwmon/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/nct6775-platform.c:199:9: sparse: sparse: incompatible types in conditional expression (different base types):
>> drivers/hwmon/nct6775-platform.c:199:9: sparse:    unsigned char
>> drivers/hwmon/nct6775-platform.c:199:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:200:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:200:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:200:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:207:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:207:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:207:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:215:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:215:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:215:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:216:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:216:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:216:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:229:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:229:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:229:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:230:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:230:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:230:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:239:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:239:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:239:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:240:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:240:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:240:9: sparse:    void
   drivers/hwmon/nct6775-platform.c:241:9: sparse: sparse: incompatible types in conditional expression (different base types):
   drivers/hwmon/nct6775-platform.c:241:9: sparse:    unsigned char
   drivers/hwmon/nct6775-platform.c:241:9: sparse:    void

vim +199 drivers/hwmon/nct6775-platform.c

   194	
   195	static void superio_outb(struct nct6775_sio_data *sio_data, int reg, int val)
   196	{
   197		int ioreg = sio_data->sioreg;
   198	
 > 199		outb(reg, ioreg);
   200		outb(val, ioreg + 1);
   201	}
   202	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


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

only message in thread, other threads:[~2022-04-30 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-30 14:49 [linux-next:master 6839/7959] drivers/hwmon/nct6775-platform.c:199:9: sparse: sparse: incompatible types in conditional expression (different base types): 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