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 40D1BC6FD1F for ; Sun, 19 Mar 2023 06:14:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbjCSGOK (ORCPT ); Sun, 19 Mar 2023 02:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjCSGOH (ORCPT ); Sun, 19 Mar 2023 02:14:07 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B80A1E296 for ; Sat, 18 Mar 2023 23:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679206444; x=1710742444; h=date:from:to:cc:subject:message-id:mime-version; bh=WsegnY2Q+/AfP5PguuD/SZz5ggrTG+4NOdqfFsl7Cpg=; b=hbbSDWdeS7uwWmM7fWZy0WNOZq/KjqPjYcX8dMg9WnXr7dGIE+QodE3n BC4Dgxiz4X04vjOEOjvZyHa6iEiYc5OCqlQF4/aoBj43M03IXPhDoKB+Y PgDbY28QZlIThkJJQY/QZYiknSM0Nrc6TAFTxgPPTWVqdRgppJhfZpXUf 6P4I+9bRCdkb3Vokyl21rEB3VeK8s0peJqHY/BkU2C+XgFbwR1ZbRidUf x/d6K6EWjHgmyRzyrs+Cx7rjsGw84m/0UT3w6NNX/7BrRVrTlxx1POpTT NSoTcvj3fPEo+PPT7Lepzwx6eB9VZJmDXxy6aYju9LG2uAEJeo+TZKkfw g==; X-IronPort-AV: E=McAfee;i="6600,9927,10653"; a="366193757" X-IronPort-AV: E=Sophos;i="5.98,273,1673942400"; d="scan'208";a="366193757" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2023 23:14:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10653"; a="769828057" X-IronPort-AV: E=Sophos;i="5.98,273,1673942400"; d="scan'208";a="769828057" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 18 Mar 2023 23:14:02 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pdmIs-000AQc-0A; Sun, 19 Mar 2023 06:14:02 +0000 Date: Sun, 19 Mar 2023 14:13:43 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [paulmck-rcu:dev.2023.03.17a 33/38] kernel/rcu/srcutree.c:1872:29: warning: variable 'ssp' set but not used Message-ID: <202303191400.iO5BOqka-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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2023.03.17a head: 19d218a4b125a4dce12eb88097a9c55f7126ce8c commit: 61eea4556e8cf92d4c9b483110a679d2652aa451 [33/38] srcu: Move work-scheduling fields from srcu_struct to srcu_usage config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20230319/202303191400.iO5BOqka-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=61eea4556e8cf92d4c9b483110a679d2652aa451 git remote add paulmck-rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git git fetch --no-tags paulmck-rcu dev.2023.03.17a git checkout 61eea4556e8cf92d4c9b483110a679d2652aa451 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash kernel/rcu/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303191400.iO5BOqka-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/rcu/srcutree.c: In function 'srcu_init': >> kernel/rcu/srcutree.c:1872:29: warning: variable 'ssp' set but not used [-Wunused-but-set-variable] 1872 | struct srcu_struct *ssp; | ^~~ vim +/ssp +1872 kernel/rcu/srcutree.c e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1869 e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1870 void __init srcu_init(void) e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1871 { aacb5d91ab1bfb Paul E. McKenney 2018-10-28 @1872 struct srcu_struct *ssp; 61eea4556e8cf9 Paul E. McKenney 2023-03-17 1873 struct srcu_usage *sup; e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1874 a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1875 /* Decide on srcu_struct-size strategy. */ a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1876 if (SRCU_SIZING_IS(SRCU_SIZING_AUTO)) { a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1877 if (nr_cpu_ids >= big_cpu_lim) { a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1878 convert_to_big = SRCU_SIZING_INIT; // Don't bother waiting for contention. a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1879 pr_info("%s: Setting srcu_struct sizes to big.\n", __func__); a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1880 } else { a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1881 convert_to_big = SRCU_SIZING_NONE | SRCU_SIZING_CONTEND; a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1882 pr_info("%s: Setting srcu_struct sizes based on contention.\n", __func__); a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1883 } a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1884 } a57ffb3c6b67e5 Paul E. McKenney 2022-01-31 1885 8e9c01c717df7e Frederic Weisbecker 2021-04-09 1886 /* 8e9c01c717df7e Frederic Weisbecker 2021-04-09 1887 * Once that is set, call_srcu() can follow the normal path and 8e9c01c717df7e Frederic Weisbecker 2021-04-09 1888 * queue delayed work. This must follow RCU workqueues creation 8e9c01c717df7e Frederic Weisbecker 2021-04-09 1889 * and timers initialization. 8e9c01c717df7e Frederic Weisbecker 2021-04-09 1890 */ e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1891 srcu_init_done = true; e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1892 while (!list_empty(&srcu_boot_list)) { 61eea4556e8cf9 Paul E. McKenney 2023-03-17 1893 sup = list_first_entry(&srcu_boot_list, struct srcu_usage, 4e6ea4ef56f942 Paul E. McKenney 2018-08-14 1894 work.work.entry); 61eea4556e8cf9 Paul E. McKenney 2023-03-17 1895 ssp = sup->srcu_ssp; 61eea4556e8cf9 Paul E. McKenney 2023-03-17 1896 list_del_init(&sup->work.work.entry); 4773cc9d1ce89d Paul E. McKenney 2023-03-17 1897 if (SRCU_SIZING_IS(SRCU_SIZING_INIT) && 61eea4556e8cf9 Paul E. McKenney 2023-03-17 1898 sup->srcu_size_state == SRCU_SIZE_SMALL) 61eea4556e8cf9 Paul E. McKenney 2023-03-17 1899 sup->srcu_size_state = SRCU_SIZE_ALLOC; 61eea4556e8cf9 Paul E. McKenney 2023-03-17 1900 queue_work(rcu_gp_wq, &sup->work.work); e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1901 } e0fcba9ac02af5 Paul E. McKenney 2018-08-14 1902 } fe15b50cdeeebd Paul E. McKenney 2019-04-05 1903 :::::: The code at line 1872 was first introduced by commit :::::: aacb5d91ab1bfbb0e8123da59a2e333d52ba7f60 srcu: Use "ssp" instead of "sp" for srcu_struct pointer :::::: TO: Paul E. McKenney :::::: CC: Paul E. McKenney -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests