From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gnuweeb.org (Postfix) with ESMTPS id 54D697E317 for ; Sat, 16 Jul 2022 20:36:58 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lkPbH3nA; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658003818; x=1689539818; h=date:from:to:cc:subject:message-id:mime-version; bh=PLg33O2t7IuADn98N6SIpBCWnAMrKHX37ZS+pDZdhYQ=; b=lkPbH3nAmdJwlIpflOBT0+45YyXxeYdiPNoV3vmN9goHi+PrBgLNYt8x r5hisX6tqjdITUkwA1xzL36aFSMS+7lo0zR/pKwRczHC5HP+17kMcwtQp 86X3l2YBrtNP6F7o1ACBslP3CfxC0NOAkAguzur+TABT2/d3XWxdBpKRJ 94V4RNJ2RFoEg9juMtjSwogJMiknKfJY2BFnimf0ZFDKCB/lMnGmQUpht 6Y5KwU5nZtobOhGsPOzuAAir9PhQ68aHOk+Y5QdoPpVyiRMr1M+NS57kc kUpWXi8KAnwiJFuUboHFmftUpjjy2ZxzmJq5KDpv665ZmK22U7PHdJAZn Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10410"; a="283569799" X-IronPort-AV: E=Sophos;i="5.92,277,1650956400"; d="scan'208";a="283569799" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2022 13:36:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,277,1650956400"; d="scan'208";a="594071781" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 16 Jul 2022 13:36:36 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oCoWh-000272-Mw; Sat, 16 Jul 2022 20:36:35 +0000 Date: Sun, 17 Jul 2022 04:36:07 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android11-kiwi-5.4 2649/9999] drivers/usb/gadget/function/f_accessory.c:295:23: sparse: sparse: Using plain integer as NULL pointer Message-ID: <202207170427.MhlD7SKH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android11-kiwi-5.4 head: 59031e281b1833e9bf16df27a80d4854ed33aef3 commit: e0ea2cf7660ddd619bfecf3cd81127a5ae27b971 [2649/9999] ANDROID: usb: f_accessory: Avoid bitfields for shared variables config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220717/202207170427.MhlD7SKH-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/e0ea2cf7660ddd619bfecf3cd81127a5ae27b971 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android11-kiwi-5.4 git checkout e0ea2cf7660ddd619bfecf3cd81127a5ae27b971 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/usb/gadget/function/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/usb/gadget/function/f_accessory.c:295:23: sparse: sparse: Using plain integer as NULL pointer drivers/usb/gadget/function/f_accessory.c:702:35: sparse: sparse: Using plain integer as NULL pointer drivers/usb/gadget/function/f_accessory.c:722:23: sparse: sparse: Using plain integer as NULL pointer drivers/usb/gadget/function/f_accessory.c:758:23: sparse: sparse: Using plain integer as NULL pointer >> drivers/usb/gadget/function/f_accessory.c:1408:5: sparse: sparse: symbol 'acc_ctrlrequest_configfs' was not declared. Should it be static? vim +295 drivers/usb/gadget/function/f_accessory.c 483cb5629ea7893 Benoit Goby 2011-12-19 286 483cb5629ea7893 Benoit Goby 2011-12-19 287 /* remove a request from the head of a list */ 483cb5629ea7893 Benoit Goby 2011-12-19 288 static struct usb_request *req_get(struct acc_dev *dev, struct list_head *head) 483cb5629ea7893 Benoit Goby 2011-12-19 289 { 483cb5629ea7893 Benoit Goby 2011-12-19 290 unsigned long flags; 483cb5629ea7893 Benoit Goby 2011-12-19 291 struct usb_request *req; 483cb5629ea7893 Benoit Goby 2011-12-19 292 483cb5629ea7893 Benoit Goby 2011-12-19 293 spin_lock_irqsave(&dev->lock, flags); 483cb5629ea7893 Benoit Goby 2011-12-19 294 if (list_empty(head)) { 483cb5629ea7893 Benoit Goby 2011-12-19 @295 req = 0; 483cb5629ea7893 Benoit Goby 2011-12-19 296 } else { 483cb5629ea7893 Benoit Goby 2011-12-19 297 req = list_first_entry(head, struct usb_request, list); 483cb5629ea7893 Benoit Goby 2011-12-19 298 list_del(&req->list); 483cb5629ea7893 Benoit Goby 2011-12-19 299 } 483cb5629ea7893 Benoit Goby 2011-12-19 300 spin_unlock_irqrestore(&dev->lock, flags); 483cb5629ea7893 Benoit Goby 2011-12-19 301 return req; 483cb5629ea7893 Benoit Goby 2011-12-19 302 } 483cb5629ea7893 Benoit Goby 2011-12-19 303 :::::: The code at line 295 was first introduced by commit :::::: 483cb5629ea7893f94481511e630ae14a5c0d1c0 ANDROID: usb: gadget: f_accessory: Add Android Accessory function :::::: TO: Benoit Goby :::::: CC: Todd Kjos -- 0-DAY CI Kernel Test Service https://01.org/lkp