From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8B0DC43334 for ; Sat, 16 Jul 2022 00:49:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbiGPAs6 (ORCPT ); Fri, 15 Jul 2022 20:48:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbiGPAsx (ORCPT ); Fri, 15 Jul 2022 20:48:53 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8BF512D2F for ; Fri, 15 Jul 2022 17:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657932531; x=1689468531; h=date:from:to:cc:subject:message-id:mime-version; bh=D36AQo3H5K/5p5hq8Y1LVT2dPfzu1gIzRHfMGeljxQw=; b=HTQvIHnR2GUOtU+WWZ73xf4nBXgezAKm0jc0/NqBTOXAH3QVGdziSY0p V5UTGjO4pJCOWcAlOkT/N9mJRAEj4WjZCV9PdXR1klQTN6d2eVzp1gmA8 Pk5VXrhS9U2cL2ape57Td71ZlTtLhKV1pMirAO2P0c8pEr7Zdoj2DLING hZasFjhYvEYu4b+g9o/5+XZCZVqAZMUvRmh/eFZoHUVlaK2x6r03V4Zhs qcoC1yniOpT/3Tmf75ecmDJV7V7nBYHjRjkSJgUEueSUmMP6R3T2h0Yel efmHyo7qlY43qZoIJnklFsS1lCFXr9u6qigIX1fzEegwV3uV8XpR08srr A==; X-IronPort-AV: E=McAfee;i="6400,9594,10409"; a="285955467" X-IronPort-AV: E=Sophos;i="5.92,275,1650956400"; d="scan'208";a="285955467" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 17:48:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,275,1650956400"; d="scan'208";a="773172011" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 15 Jul 2022 17:48:50 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oCVzF-0000u4-HW; Sat, 16 Jul 2022 00:48:49 +0000 Date: Sat, 16 Jul 2022 08:48:42 +0800 From: kernel test robot To: Loic Poulain Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: drivers/net/wwan/iosm/iosm_ipc_mux_codec.c:833:21: sparse: sparse: Using plain integer as NULL pointer Message-ID: <202207160836.RlSIXAvl-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Loic, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9b59ec8d50a1f28747ceff9a4f39af5deba9540e commit: 89212e160b81e778f829b89743570665810e3b13 net: wwan: Fix WWAN config symbols date: 1 year, 1 month ago config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220716/202207160836.RlSIXAvl-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=89212e160b81e778f829b89743570665810e3b13 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 89212e160b81e778f829b89743570665810e3b13 # 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=i386 SHELL=/bin/bash drivers/net/wwan/iosm/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/net/wwan/iosm/iosm_ipc_mux_codec.c:833:21: sparse: sparse: Using plain integer as NULL pointer vim +833 drivers/net/wwan/iosm/iosm_ipc_mux_codec.c 9413491e20e1aba M Chetan Kumar 2021-06-13 814 9413491e20e1aba M Chetan Kumar 2021-06-13 815 void ipc_mux_ul_encoded_process(struct iosm_mux *ipc_mux, struct sk_buff *skb) 9413491e20e1aba M Chetan Kumar 2021-06-13 816 { 9413491e20e1aba M Chetan Kumar 2021-06-13 817 struct mux_adgh *adgh; 9413491e20e1aba M Chetan Kumar 2021-06-13 818 u16 adgh_len; 9413491e20e1aba M Chetan Kumar 2021-06-13 819 9413491e20e1aba M Chetan Kumar 2021-06-13 820 adgh = (struct mux_adgh *)skb->data; 9413491e20e1aba M Chetan Kumar 2021-06-13 821 adgh_len = le16_to_cpu(adgh->length); 9413491e20e1aba M Chetan Kumar 2021-06-13 822 9413491e20e1aba M Chetan Kumar 2021-06-13 823 if (adgh->signature == cpu_to_le32(MUX_SIG_ADGH) && 9413491e20e1aba M Chetan Kumar 2021-06-13 824 ipc_mux->ul_flow == MUX_UL) 9413491e20e1aba M Chetan Kumar 2021-06-13 825 ipc_mux->ul_data_pend_bytes = ipc_mux->ul_data_pend_bytes - 9413491e20e1aba M Chetan Kumar 2021-06-13 826 adgh_len; 9413491e20e1aba M Chetan Kumar 2021-06-13 827 9413491e20e1aba M Chetan Kumar 2021-06-13 828 if (ipc_mux->ul_flow == MUX_UL) 9413491e20e1aba M Chetan Kumar 2021-06-13 829 dev_dbg(ipc_mux->dev, "ul_data_pend_bytes: %lld", 9413491e20e1aba M Chetan Kumar 2021-06-13 830 ipc_mux->ul_data_pend_bytes); 9413491e20e1aba M Chetan Kumar 2021-06-13 831 9413491e20e1aba M Chetan Kumar 2021-06-13 832 /* Reset the skb settings. */ 9413491e20e1aba M Chetan Kumar 2021-06-13 @833 skb->tail = 0; 9413491e20e1aba M Chetan Kumar 2021-06-13 834 skb->len = 0; 9413491e20e1aba M Chetan Kumar 2021-06-13 835 9413491e20e1aba M Chetan Kumar 2021-06-13 836 /* Add the consumed ADB to the free list. */ 9413491e20e1aba M Chetan Kumar 2021-06-13 837 skb_queue_tail((&ipc_mux->ul_adb.free_list), skb); 9413491e20e1aba M Chetan Kumar 2021-06-13 838 } 9413491e20e1aba M Chetan Kumar 2021-06-13 839 :::::: The code at line 833 was first introduced by commit :::::: 9413491e20e1aba6e471d90c19cc43e523216a4d net: iosm: encode or decode datagram :::::: TO: M Chetan Kumar :::::: CC: David S. Miller -- 0-DAY CI Kernel Test Service https://01.org/lkp