public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 1461/9999] drivers/usb/host/xhci-mem.c:373:16: sparse: sparse: Using plain integer as NULL pointer
@ 2022-09-18 18:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-18 18:52 UTC (permalink / raw)
  To: Ammar Faizi, GNU/Weeb Mailing List; +Cc: kbuild-all

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10-2021-12
head:   dbbb7b2f16b9fa3c706fe5b8c234431b97108bec
commit: ed626b01e56be9be91ef8dc02a64bb0856e4e20d [1461/9999] FROMLIST: usb: host: add xhci hooks for USB offload
config: alpha-randconfig-s051-20220918 (https://download.01.org/0day-ci/archive/20220919/[email protected]/config)
compiler: alpha-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/ammarfaizi2/linux-block/commit/ed626b01e56be9be91ef8dc02a64bb0856e4e20d
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10-2021-12
        git checkout ed626b01e56be9be91ef8dc02a64bb0856e4e20d
        # 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=alpha SHELL=/bin/bash drivers/dma-buf/ drivers/usb/host/ fs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

sparse warnings: (new ones prefixed by >>)
>> drivers/usb/host/xhci-mem.c:373:16: sparse: sparse: Using plain integer as NULL pointer
   drivers/usb/host/xhci-mem.c:1885:16: sparse: sparse: Using plain integer as NULL pointer

vim +373 drivers/usb/host/xhci-mem.c

   363	
   364	static struct xhci_ring *xhci_vendor_alloc_transfer_ring(struct xhci_hcd *xhci,
   365			u32 endpoint_type, enum xhci_ring_type ring_type,
   366			gfp_t mem_flags)
   367	{
   368		struct xhci_vendor_ops *ops = xhci_vendor_get_ops(xhci);
   369	
   370		if (ops && ops->alloc_transfer_ring)
   371			return ops->alloc_transfer_ring(xhci, endpoint_type, ring_type,
   372							mem_flags);
 > 373		return 0;
   374	}
   375	

-- 
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-09-18 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-18 18:52 [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 1461/9999] drivers/usb/host/xhci-mem.c:373:16: 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