Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2733564rdd; Fri, 12 Jan 2024 22:54:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYDMMNRqdqWeeztpGdqRgYxi5+q/RXqgUKk0lmXN8aoZSeKFLXG0zVe+rF4Fv7QR7XvWgc X-Received: by 2002:a05:622a:178d:b0:429:af93:e0d4 with SMTP id s13-20020a05622a178d00b00429af93e0d4mr3175216qtk.107.1705128889505; Fri, 12 Jan 2024 22:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705128889; cv=none; d=google.com; s=arc-20160816; b=DNSdH/jFRVNzF4V1oLvfu0YwF4v55jo4dDxYtu2SnSL/7URApcr4mpxvPOK2NARFxB GaE/gvJ7gd6zt5GNxrtbIwwe7hIDy9ti16N3u0m1DC9GR8ICZwvxT/eqkHf4/O6DmOLe nrwl/9zpWrl+SGr9kPpbKLZNG3CsWgYHx/7Nmpe+Lc9avkM80zhi6ufxY9M2OVzGaKIr T02Navf20R56Bi2HFqboeZni2zzCUwJqsQJZjoS3jqx4JoEBtD82/IFY4V3/RKdAVXhg HJecbAy7xC17j60to/ZF4+zs6x8Tpux+F2/AcXAAx2p4bqlmquKeGD2afkpNS3SKbMro pIaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wt91LkK9yU1Fg7dAC6SuQK+lVKLKsnttz67YejfA3sQ=; fh=YUqMb2q0z/Rbes46r6KQn4WajujJ0B7LNmr3n6DpCsE=; b=oArrccpsg/PRAI6pHfTvyXeTgv8ToAzq0Qhg6A4NWvjw62d98NaVwghaBcjYE2wu1R SMbZnMF8VMgWDiLRDXQRhPW3i0ZUhqkIIGIEDuHfjytJLZyTAdDs6gKjxozVB7xhc1VA zmxVRhCd4f1Dmc3KyR3I1pp0rvazC+J6R2yyD+3X5wPNXdKB9zd/XSl5lEmuUosXNrQz J6hYPM4Nd2UOV63mF6ZBOv63mk7Q1kvOnDZiqgMoUGy5poCr/M77sUmdpMHGXDz0kmZD yqGBDMm5Q4bgYoQE112tUcCypq0TgdesVe01S4+LyUeias1Ta8eaUC9Dc2ToSkeQeuhS nNzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mguT7U0a; spf=pass (google.com: domain of linux-kernel+bounces-25206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g22-20020ac87f56000000b0042839f5ebc2si4391004qtk.702.2024.01.12.22.54.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 22:54:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mguT7U0a; spf=pass (google.com: domain of linux-kernel+bounces-25206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 40A6E1C22591 for ; Sat, 13 Jan 2024 06:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02C1613FF4; Sat, 13 Jan 2024 06:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mguT7U0a" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9769E33C8 for ; Sat, 13 Jan 2024 06:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705128881; x=1736664881; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LiiSjn7Y67rp8tXQVxzuXlHYh29syWnvmy/Ql7KjgxY=; b=mguT7U0amJg7tLHVFj+cRTstyEWP/z7gYFr4AAF1w1LwiMBu1HSzM0+Z uiEkZcehgS36FfHzw9UD/XLdC2OmfrmTXj1myHVDc6xB6oADy/iN1DDx+ kOfsU50OH0H+juEOiqFd5JWpZ5fzyEgkalK2DkcWvsdTM6vguh6zRr6gC 5TaEGuSgRuldpZWxjl0V4zbkiVopkvz1yeoBy2tUEpZggLKU6A7VppsXd FSTID5uloJQugorjMXJb6f12LvkaFQiDlXqKPBRxHGmfW4DB0a9ZoT18X bUY90+WezCPisTc41bPPMf+R3QhkUttgUpZ5TmvPcg5+VHHUApNDdNSr/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10951"; a="20832579" X-IronPort-AV: E=Sophos;i="6.04,191,1695711600"; d="scan'208";a="20832579" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2024 22:54:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10951"; a="853485116" X-IronPort-AV: E=Sophos;i="6.04,191,1695711600"; d="scan'208";a="853485116" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 12 Jan 2024 22:54:35 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rOXub-000AC6-2C; Sat, 13 Jan 2024 06:54:33 +0000 Date: Sat, 13 Jan 2024 14:54:17 +0800 From: kernel test robot To: Leonardo Bras , Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Andrea Parri , Geert Uytterhoeven , Ingo Molnar , Andrzej Hajda Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v1 1/5] riscv/cmpxchg: Deduplicate xchg() asm functions Message-ID: <202401131438.f8SELM0W-lkp@intel.com> References: <20240103163203.72768-3-leobras@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240103163203.72768-3-leobras@redhat.com> Hi Leonardo, kernel test robot noticed the following build warnings: [auto build test WARNING on 610a9b8f49fbcf1100716370d3b5f6f884a2835a] url: https://github.com/intel-lab-lkp/linux/commits/Leonardo-Bras/riscv-cmpxchg-Deduplicate-xchg-asm-functions/20240104-003501 base: 610a9b8f49fbcf1100716370d3b5f6f884a2835a patch link: https://lore.kernel.org/r/20240103163203.72768-3-leobras%40redhat.com patch subject: [PATCH v1 1/5] riscv/cmpxchg: Deduplicate xchg() asm functions config: riscv-randconfig-r111-20240112 (https://download.01.org/0day-ci/archive/20240113/202401131438.f8SELM0W-lkp@intel.com/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 9bde5becb44ea071f5e1fa1f5d4071dc8788b18c) reproduce: (https://download.01.org/0day-ci/archive/20240113/202401131438.f8SELM0W-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401131438.f8SELM0W-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> net/ipv4/tcp_cong.c:300:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct tcp_congestion_ops const [noderef] __rcu *__new @@ got struct tcp_congestion_ops *[assigned] ca @@ net/ipv4/tcp_cong.c:300:24: sparse: expected struct tcp_congestion_ops const [noderef] __rcu *__new net/ipv4/tcp_cong.c:300:24: sparse: got struct tcp_congestion_ops *[assigned] ca net/ipv4/tcp_cong.c:300: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 * @@ net/ipv4/tcp_cong.c:300:22: sparse: expected struct tcp_congestion_ops const *prev net/ipv4/tcp_cong.c:300:22: sparse: got struct tcp_congestion_ops const [noderef] __rcu * net/ipv4/tcp_cong.c: note: in included file (through include/linux/module.h): include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true vim +300 net/ipv4/tcp_cong.c 317a76f9a44b43 Stephen Hemminger 2005-06-23 281 317a76f9a44b43 Stephen Hemminger 2005-06-23 282 /* Used by sysctl to change default congestion control */ 6670e152447732 Stephen Hemminger 2017-11-14 283 int tcp_set_default_congestion_control(struct net *net, const char *name) 317a76f9a44b43 Stephen Hemminger 2005-06-23 284 { 317a76f9a44b43 Stephen Hemminger 2005-06-23 285 struct tcp_congestion_ops *ca; 6670e152447732 Stephen Hemminger 2017-11-14 286 const struct tcp_congestion_ops *prev; 6670e152447732 Stephen Hemminger 2017-11-14 287 int ret; 317a76f9a44b43 Stephen Hemminger 2005-06-23 288 6670e152447732 Stephen Hemminger 2017-11-14 289 rcu_read_lock(); 6670e152447732 Stephen Hemminger 2017-11-14 290 ca = tcp_ca_find_autoload(net, name); 6670e152447732 Stephen Hemminger 2017-11-14 291 if (!ca) { 6670e152447732 Stephen Hemminger 2017-11-14 292 ret = -ENOENT; 0baf26b0fcd74b Martin KaFai Lau 2020-01-08 293 } else if (!bpf_try_module_get(ca, ca->owner)) { 6670e152447732 Stephen Hemminger 2017-11-14 294 ret = -EBUSY; 8d432592f30fcc Jonathon Reinhart 2021-05-01 295 } else if (!net_eq(net, &init_net) && 8d432592f30fcc Jonathon Reinhart 2021-05-01 296 !(ca->flags & TCP_CONG_NON_RESTRICTED)) { 8d432592f30fcc Jonathon Reinhart 2021-05-01 297 /* Only init netns can set default to a restricted algorithm */ 8d432592f30fcc Jonathon Reinhart 2021-05-01 298 ret = -EPERM; 6670e152447732 Stephen Hemminger 2017-11-14 299 } else { 6670e152447732 Stephen Hemminger 2017-11-14 @300 prev = xchg(&net->ipv4.tcp_congestion_control, ca); 6670e152447732 Stephen Hemminger 2017-11-14 301 if (prev) 0baf26b0fcd74b Martin KaFai Lau 2020-01-08 302 bpf_module_put(prev, prev->owner); 317a76f9a44b43 Stephen Hemminger 2005-06-23 303 6670e152447732 Stephen Hemminger 2017-11-14 304 ca->flags |= TCP_CONG_NON_RESTRICTED; 317a76f9a44b43 Stephen Hemminger 2005-06-23 305 ret = 0; 317a76f9a44b43 Stephen Hemminger 2005-06-23 306 } 6670e152447732 Stephen Hemminger 2017-11-14 307 rcu_read_unlock(); 317a76f9a44b43 Stephen Hemminger 2005-06-23 308 317a76f9a44b43 Stephen Hemminger 2005-06-23 309 return ret; 317a76f9a44b43 Stephen Hemminger 2005-06-23 310 } 317a76f9a44b43 Stephen Hemminger 2005-06-23 311 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki