lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210181103.ontD9tRT-lkp@intel.com>
Date:   Tue, 18 Oct 2022 11:48:36 +0800
From:   kernel test robot <lkp@...el.com>
To:     Quan Nguyen <quan@...amperecomputing.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Corey Minyard <cminyard@...sta.com>
Subject: [cminyard-ipmi:for-next 1/6] drivers/char/ipmi/ssif_bmc.c:254:22:
 sparse: sparse: invalid assignment: |=

tree:   https://github.com/cminyard/linux-ipmi for-next
head:   c608966f3f9c2dca596967501d00753282b395fc
commit: dd2bc5cc9e25554546f16661f8de1dcb8033dde0 [1/6] ipmi: ssif_bmc: Add SSIF BMC driver
config: sparc64-randconfig-s042-20221018
compiler: sparc64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty
        # https://github.com/cminyard/linux-ipmi/commit/dd2bc5cc9e25554546f16661f8de1dcb8033dde0
        git remote add cminyard-ipmi https://github.com/cminyard/linux-ipmi
        git fetch --no-tags cminyard-ipmi for-next
        git checkout dd2bc5cc9e25554546f16661f8de1dcb8033dde0
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

sparse warnings: (new ones prefixed by >>)
>> drivers/char/ipmi/ssif_bmc.c:254:22: sparse: sparse: invalid assignment: |=
>> drivers/char/ipmi/ssif_bmc.c:254:22: sparse:    left side has type restricted __poll_t
>> drivers/char/ipmi/ssif_bmc.c:254:22: sparse:    right side has type int

vim +254 drivers/char/ipmi/ssif_bmc.c

   243	
   244	static __poll_t ssif_bmc_poll(struct file *file, poll_table *wait)
   245	{
   246		struct ssif_bmc_ctx *ssif_bmc = to_ssif_bmc(file);
   247		__poll_t mask = 0;
   248	
   249		poll_wait(file, &ssif_bmc->wait_queue, wait);
   250	
   251		spin_lock_irq(&ssif_bmc->lock);
   252		/* The request is available, userspace application can get the request */
   253		if (ssif_bmc->request_available)
 > 254			mask |= POLLIN;
   255	
   256		spin_unlock_irq(&ssif_bmc->lock);
   257	
   258		return mask;
   259	}
   260	

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

View attachment "config" of type "text/plain" (119682 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ