[linux-next:master 6839/7959] drivers/hwmon/nct6775-platform.c:199:9: sparse: sparse: incompatible types in conditional expression (different base types):

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

 



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@xxxxxxxxx/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@xxxxxxxxx>


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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux