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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3DFBDECAAA2 for ; Sun, 28 Aug 2022 04:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=NoKRw8epJPYJoYAT732rtiwmNE86C5hx3G4fOGVSvOQ=; b=BGbuHxtaZFisiu PibevFuhyjaZIPh7I/bd8SjjIf1o3cLZ4oHRZjLNlCr3HsXSd3jOKS8bqJpvOVm/vSJ2mNYS0BERN V4SEBcS6BOGTvfPZKhnzDxj4RYDGscIpfIYJFK4pXXNd0vYxD3qJY2KS8pKicJs1/qfczyZP9wMms kEfBrNohu55/roPLFjbo0BG+3IlAuH7ECgrV5nIh1TPM8OgBU9VV+FIUPK75HAxXk9govvUUrDPkl GPQGP3OXMYPWo31IugeQDfKMaBYTaW1V9Zwmlt1z2FM+JgqdLpMQ1TNrnjeRYAF1sv8AsheMl+A2z QiFhxMYTQC2tgrVNbVQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oS9fB-00Bs6F-Tr; Sun, 28 Aug 2022 04:12:45 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oS9f6-00Brtf-3i for linux-snps-arc@lists.infradead.org; Sun, 28 Aug 2022 04:12:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661659960; x=1693195960; h=date:from:to:cc:subject:message-id:mime-version; bh=DOyard4NM3qRjINWWbMUt2sR2L4PxBgbUyBAqC4c6ac=; b=H8m1to9kucSvM6WyCtKhQeSlYNCOzRM+QFmUZeQAs4QBIw9J2o+u69Kd RHAlzsQDVuL9StDaXsoM9JLADVGbSruV04l/T23qPuOWvDff+PuWH5eWZ c+9M4UIIy+z2PtnW1x/jk94J4INHCQTrbpo+OLjUj4+et1kOal7ne+q32 ejZD9W3j678Q5c6cHvFXJ22d1KmipleOBIJpTxeAk7oYy9sVUPmJAl8sn I4jcKGd2I+r40RILhZ2Y2Mjs87rddDc6v3j63yAi2WDdcPTcVfTlJBDiN hGN+I9IXzdS9tpIvRqBFWH4/R+XneuZi4sPFRvvfqkv3ZUXh3NjkuKtd1 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10452"; a="295981916" X-IronPort-AV: E=Sophos;i="5.93,269,1654585200"; d="scan'208";a="295981916" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2022 21:12:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,269,1654585200"; d="scan'208";a="679272213" Received: from lkp-server01.sh.intel.com (HELO fc16deae1c42) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 27 Aug 2022 21:12:34 -0700 Received: from kbuild by fc16deae1c42 with local (Exim 4.96) (envelope-from ) id 1oS9ez-0000ma-27; Sun, 28 Aug 2022 04:12:33 +0000 Date: Sun, 28 Aug 2022 12:12:28 +0800 From: kernel test robot To: Vineet Gupta Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org Subject: net/ipv4/tcp_cong.c:238:24: sparse: sparse: incorrect type in initializer (different address spaces) Message-ID: <202208281216.awXruhll-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220827_211240_252151_29FE07E6 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 10d4879f9ef01cc6190fafe4257d06f375bab92c commit: e188f3330a13df904d77003846eafd3edf99009d ARC: cmpxchg/xchg: rewrite as macros to make type safe date: 1 year ago config: arc-randconfig-s041-20220828 (https://download.01.org/0day-ci/archive/20220828/202208281216.awXruhll-lkp@intel.com/config) compiler: arc-elf-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e188f3330a13df904d77003846eafd3edf99009d git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e188f3330a13df904d77003846eafd3edf99009d # 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=arc SHELL=/bin/bash net/ipv4/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> net/ipv4/tcp_cong.c:238:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct tcp_congestion_ops const [noderef] __rcu *_val_ @@ got struct tcp_congestion_ops *[assigned] ca @@ net/ipv4/tcp_cong.c:238:24: sparse: expected struct tcp_congestion_ops const [noderef] __rcu *_val_ net/ipv4/tcp_cong.c:238:24: sparse: got struct tcp_congestion_ops *[assigned] ca net/ipv4/tcp_cong.c:238:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tcp_congestion_ops const *prev @@ got struct tcp_congestion_ops const [noderef] __rcu *[assigned] _val_ @@ net/ipv4/tcp_cong.c:238:22: sparse: expected struct tcp_congestion_ops const *prev net/ipv4/tcp_cong.c:238:22: sparse: got struct tcp_congestion_ops const [noderef] __rcu *[assigned] _val_ vim +238 net/ipv4/tcp_cong.c 317a76f9a44b43 Stephen Hemminger 2005-06-23 219 317a76f9a44b43 Stephen Hemminger 2005-06-23 220 /* Used by sysctl to change default congestion control */ 6670e152447732 Stephen Hemminger 2017-11-14 221 int tcp_set_default_congestion_control(struct net *net, const char *name) 317a76f9a44b43 Stephen Hemminger 2005-06-23 222 { 317a76f9a44b43 Stephen Hemminger 2005-06-23 223 struct tcp_congestion_ops *ca; 6670e152447732 Stephen Hemminger 2017-11-14 224 const struct tcp_congestion_ops *prev; 6670e152447732 Stephen Hemminger 2017-11-14 225 int ret; 317a76f9a44b43 Stephen Hemminger 2005-06-23 226 6670e152447732 Stephen Hemminger 2017-11-14 227 rcu_read_lock(); 6670e152447732 Stephen Hemminger 2017-11-14 228 ca = tcp_ca_find_autoload(net, name); 6670e152447732 Stephen Hemminger 2017-11-14 229 if (!ca) { 6670e152447732 Stephen Hemminger 2017-11-14 230 ret = -ENOENT; 0baf26b0fcd74b Martin KaFai Lau 2020-01-08 231 } else if (!bpf_try_module_get(ca, ca->owner)) { 6670e152447732 Stephen Hemminger 2017-11-14 232 ret = -EBUSY; 8d432592f30fcc Jonathon Reinhart 2021-05-01 233 } else if (!net_eq(net, &init_net) && 8d432592f30fcc Jonathon Reinhart 2021-05-01 234 !(ca->flags & TCP_CONG_NON_RESTRICTED)) { 8d432592f30fcc Jonathon Reinhart 2021-05-01 235 /* Only init netns can set default to a restricted algorithm */ 8d432592f30fcc Jonathon Reinhart 2021-05-01 236 ret = -EPERM; 6670e152447732 Stephen Hemminger 2017-11-14 237 } else { 6670e152447732 Stephen Hemminger 2017-11-14 @238 prev = xchg(&net->ipv4.tcp_congestion_control, ca); 6670e152447732 Stephen Hemminger 2017-11-14 239 if (prev) 0baf26b0fcd74b Martin KaFai Lau 2020-01-08 240 bpf_module_put(prev, prev->owner); 317a76f9a44b43 Stephen Hemminger 2005-06-23 241 6670e152447732 Stephen Hemminger 2017-11-14 242 ca->flags |= TCP_CONG_NON_RESTRICTED; 317a76f9a44b43 Stephen Hemminger 2005-06-23 243 ret = 0; 317a76f9a44b43 Stephen Hemminger 2005-06-23 244 } 6670e152447732 Stephen Hemminger 2017-11-14 245 rcu_read_unlock(); 317a76f9a44b43 Stephen Hemminger 2005-06-23 246 317a76f9a44b43 Stephen Hemminger 2005-06-23 247 return ret; 317a76f9a44b43 Stephen Hemminger 2005-06-23 248 } 317a76f9a44b43 Stephen Hemminger 2005-06-23 249 :::::: The code at line 238 was first introduced by commit :::::: 6670e152447732ba90626f36dfc015a13fbf150e tcp: Namespace-ify sysctl_tcp_default_congestion_control :::::: TO: Stephen Hemminger :::::: CC: David S. Miller -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc