public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* arch/s390/kvm/pci.h:47:69: sparse: sparse: Using plain integer as NULL pointer
@ 2022-08-13  5:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-13  5:32 UTC (permalink / raw)
  To: Matthew Rosato
  Cc: kbuild-all, linux-kernel, Christian Borntraeger, Pierre Morel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   69dac8e431af26173ca0a1ebc87054e01c585bcc
commit: 73f91b004321f2510fa79e66035dbbf1870fcf56 KVM: s390: pci: enable host forwarding of Adapter Event Notifications
date:   5 weeks ago
config: s390-randconfig-s053-20220811 (https://download.01.org/0day-ci/archive/20220813/202208131353.8ChUuYVb-lkp@intel.com/config)
compiler: s390-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=73f91b004321f2510fa79e66035dbbf1870fcf56
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 73f91b004321f2510fa79e66035dbbf1870fcf56
        # 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=s390 SHELL=/bin/bash

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

sparse warnings: (new ones prefixed by >>)
   arch/s390/kvm/interrupt.c: note: in included file:
>> arch/s390/kvm/pci.h:47:69: sparse: sparse: Using plain integer as NULL pointer
   arch/s390/kvm/pci.h:48:32: sparse: sparse: Using plain integer as NULL pointer
   arch/s390/kvm/pci.h:49:24: sparse: sparse: Using plain integer as NULL pointer

vim +47 arch/s390/kvm/pci.h

    43	
    44	static inline struct kvm *kvm_s390_pci_si_to_kvm(struct zpci_aift *aift,
    45							 unsigned long si)
    46	{
  > 47		if (!IS_ENABLED(CONFIG_VFIO_PCI_ZDEV_KVM) || aift->kzdev == 0 ||
    48		    aift->kzdev[si] == 0)
    49			return 0;
    50		return aift->kzdev[si]->kvm;
    51	};
    52	

-- 
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-08-13  5:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-13  5:32 arch/s390/kvm/pci.h:47:69: sparse: sparse: Using plain integer as NULL pointer 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