public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [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
Date: Mon, 19 Sep 2022 02:52:22 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

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

                 reply	other threads:[~2022-09-18 18:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox