Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp132276iof; Sun, 5 Jun 2022 23:19:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy96xE4RF+1Ub9oTvQCOPVO1RA9XPrcXaUzrN1qM27FlKiDIcPxtG75/cV76KFE4LqssSKF X-Received: by 2002:a17:902:a706:b0:163:f77b:10e0 with SMTP id w6-20020a170902a70600b00163f77b10e0mr23333086plq.96.1654496346990; Sun, 05 Jun 2022 23:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654496346; cv=none; d=google.com; s=arc-20160816; b=DMyf/7PTnyxGZGgxfYIx4V6xPJN4jYlLeiWGRxawQN/mLlVSyAtG68qg2jb/SFhfN4 a/BKYsIkKtAlIYvxTWrLJgq5jl6ImE79JFZHhVaLE0Rg28lLYJvbjFeeiUFBFkhQDhMl ARjWQD7PiAuIIgEXjy0S+S2LoXafkkotS14qLgpWbe/GhJ1JuBG6cS5OK18DQxzrtvop tNo4RudqKpcn7qaB3ChRvgMJ8WyfQ5xLd8fZlqFxx337EjlumpmODMncVUtaX2ETUPK5 vjD0au765MkwD0zsYb1lRlsI8LiCUdOKMmvNxutQR96mJo9dI8Oj1b11i1Hp+DGOg62V sAQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=eMTNRe3Y+GAReFwMrInjwoEKTT//tjSM4tAQ6nqjO20=; b=xa0Kvqwq32iWlVgUMtexMMbMqV10iQ9cu4/zKJNTzqHLigkhlPzoypThH0skHClL5P jq9lHTFEMcdaMAZlT9NV1qRUqHP2u7ggW8Rx99NkAHmywvnT8TjdRW0aH/2A3QxqzLIa 5QXE7x4wi/uzeYZzIfUs1T65/L0iN+zsPBeQWocNIEBCrr0yUV2F+1ceIumvK7TuR3Jk o8AUxg74yhLsOmpDLmbObFbODa1+qhEr+56w67zAM8m+w/R3l/Ms7cAxpbJhpZnWS7Z/ vjf6S/WW7Lxu6O9THg5M3kqHrXsaxCWSL0sR2N3EcjGGwvXP7aE8STmXUHRXjbCQuZxy YF1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ngkmGMtt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x128-20020a633186000000b003f5ccb1a239si17964344pgx.113.2022.06.05.23.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ngkmGMtt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C31E271DBD; Sun, 5 Jun 2022 21:58:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240678AbiFEAr2 (ORCPT + 99 others); Sat, 4 Jun 2022 20:47:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233798AbiFEAr1 (ORCPT ); Sat, 4 Jun 2022 20:47:27 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81FE22314D for ; Sat, 4 Jun 2022 17:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654390043; x=1685926043; h=date:from:to:cc:subject:message-id:mime-version; bh=fnbcv66SeQAd1at2MtK+QImZYF52AxEOjsIR5CMdfUA=; b=ngkmGMttTIXDbdMWE+s0ePBju1jmuOvWCPHoXrckX+Dk+PtLLvsjzY5h UPC6XHBbdbF+0p/5/vgwkdcV1m0hrORW+lBxph/kNMOlW+wIPbA868iwB 9jXPYZw9UuEE81hveIjOTOjhNfCi5eUagp8T+OhtVfbA7P+/rL0R4zq0c q7lm6H7R+F0XgyATz6h13URJ9BLWmUskWezx6Nouh9gIUMpSRa1J+Du4u KFguozKE79MbGQyIGChvQNmGjIHwmfmNbcsbmD0bmeB6Blwf7a+g5zxxL 8v69x8hRnOfvtGqeQBMiiEv6zQpxEGkEetaG/ff/TGPfJ9VC4ok4x/HMS w==; X-IronPort-AV: E=McAfee;i="6400,9594,10368"; a="256359814" X-IronPort-AV: E=Sophos;i="5.91,278,1647327600"; d="scan'208";a="256359814" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2022 17:47:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,278,1647327600"; d="scan'208";a="757983683" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 04 Jun 2022 17:47:18 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nxeQH-000BJR-Q2; Sun, 05 Jun 2022 00:47:17 +0000 Date: Sun, 5 Jun 2022 08:46:32 +0800 From: kernel test robot To: Eric Dumazet Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Jakub Kicinski , Brian Vazquez Subject: net/core/dev.c:10290:18: sparse: sparse: cast removes address space '__percpu' of expression Message-ID: <202206050845.IJUsAUy8-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d0e60d46bc03252b8d4ffaaaa0b371970ac16cda commit: 625788b5844511cf4c30cffa7fa0bc3a69cebc82 net: add per-cpu storage and net->core_stats date: 3 months ago config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220605/202206050845.IJUsAUy8-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.3.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-18-g56afb504-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=625788b5844511cf4c30cffa7fa0bc3a69cebc82 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 625788b5844511cf4c30cffa7fa0bc3a69cebc82 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash net/core/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) net/core/dev.c:3254:23: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __wsum [usertype] csum @@ got unsigned int @@ net/core/dev.c:3254:23: sparse: expected restricted __wsum [usertype] csum net/core/dev.c:3254:23: sparse: got unsigned int net/core/dev.c:3254:23: sparse: sparse: cast from restricted __wsum >> net/core/dev.c:10290:18: sparse: sparse: cast removes address space '__percpu' of expression net/core/dev.c:3759:17: sparse: sparse: context imbalance in '__dev_queue_xmit' - different lock contexts for basic block net/core/dev.c:4961:17: sparse: sparse: context imbalance in 'net_tx_action' - different lock contexts for basic block vim +/__percpu +10290 net/core/dev.c 10282 10283 struct net_device_core_stats *netdev_core_stats_alloc(struct net_device *dev) 10284 { 10285 struct net_device_core_stats __percpu *p; 10286 10287 p = alloc_percpu_gfp(struct net_device_core_stats, 10288 GFP_ATOMIC | __GFP_NOWARN); 10289 10290 if (p && cmpxchg(&dev->core_stats, NULL, p)) 10291 free_percpu(p); 10292 10293 /* This READ_ONCE() pairs with the cmpxchg() above */ 10294 p = READ_ONCE(dev->core_stats); 10295 if (!p) 10296 return NULL; 10297 10298 return this_cpu_ptr(p); 10299 } 10300 EXPORT_SYMBOL(netdev_core_stats_alloc); 10301 -- 0-DAY CI Kernel Test Service https://01.org/lkp