From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 21E1A2C9E for ; Fri, 28 Jan 2022 11:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643368697; x=1674904697; h=date:from:to:cc:subject:message-id:mime-version; bh=NJGR6MdoUIo0FwESDeTGIJKeR0quDcROma1moapxKII=; b=Pkg4VchZ2alDM/F4vj3lUnWyXR+ZtNRfKYsj9uUUk2PuwwpOuc6TM/GB XfO2PR5bzjRSoK1a+4IgTp9rtoJ3qbaWkgfOOt3r5iuGyDYIDozqtaak8 PGG9WDd1AFdqgGCRAgqXKIJWxOBi6QXUUBjrZ28XSKApIVF/bxS8NZkgE aMeirltTZcK3tm2qENmCMsTWB1P5Dd8872zaSDLuv2Ys3hcYP8rSB6X8X QXXeRm4zy1aMIZltRJ5FrBCn+jcSxTPid42oXPNu5abiwP2jJGELzynV+ 9tAJQUZA1m2sHjGhwkLzjwNyAur0RLpfZM3mF0W2WnqsneeETJWl5Y0wK w==; X-IronPort-AV: E=McAfee;i="6200,9189,10240"; a="246875991" X-IronPort-AV: E=Sophos;i="5.88,323,1635231600"; d="scan'208";a="246875991" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 03:18:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,323,1635231600"; d="scan'208";a="697062938" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 28 Jan 2022 03:18:14 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nDPGg-000NmB-0d; Fri, 28 Jan 2022 11:18:14 +0000 Date: Fri, 28 Jan 2022 19:18:01 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:paulmck/linux-rcu/dev 94/94] kernel/rcu/srcutree.c:313:6: warning: no previous prototype for function 'spin_lock_irqsave_ssp_contention' Message-ID: <202201281904.qRllNV38-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/dev head: 903a93309e5a59497d3c178cabb67ecc6c843a69 commit: 903a93309e5a59497d3c178cabb67ecc6c843a69 [94/94] srcu: Add contention-triggered addition of srcu_node tree config: hexagon-randconfig-r015-20220128 (https://download.01.org/0day-ci/archive/20220128/202201281904.qRllNV38-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45ee44b1f32ffdbc995e6fec806271b4b3ba4) 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://github.com/ammarfaizi2/linux-block/commit/903a93309e5a59497d3c178cabb67ecc6c843a69 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/dev git checkout 903a93309e5a59497d3c178cabb67ecc6c843a69 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/firewire/ kernel/rcu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/rcu/srcutree.c:313:6: warning: no previous prototype for function 'spin_lock_irqsave_ssp_contention' [-Wmissing-prototypes] void spin_lock_irqsave_ssp_contention(struct srcu_struct *ssp, unsigned long *flags) ^ kernel/rcu/srcutree.c:313:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void spin_lock_irqsave_ssp_contention(struct srcu_struct *ssp, unsigned long *flags) ^ static 1 warning generated. vim +/spin_lock_irqsave_ssp_contention +313 kernel/rcu/srcutree.c 306 307 /* 308 * Acquire the specified srcu_struct structure's ->lock, but check for 309 * excessive contention, which results in initiation of a transition 310 * to SRCU_SIZE_BIG. But only if the srcutree.convert_to_big module 311 * parameter permits this. 312 */ > 313 void spin_lock_irqsave_ssp_contention(struct srcu_struct *ssp, unsigned long *flags) 314 { 315 unsigned long j; 316 317 if (spin_trylock_irqsave_rcu_node(ssp, *flags)) 318 return; 319 spin_lock_irqsave_rcu_node(ssp, *flags); 320 if (!(convert_to_big & 0x10) || ssp->srcu_size_state) 321 return; 322 j = jiffies; 323 if (ssp->srcu_size_jiffies != j) { 324 ssp->srcu_size_jiffies = j; 325 ssp->srcu_n_lock_retries = 0; 326 } 327 if (++ssp->srcu_n_lock_retries <= small_contention_lim) 328 return; 329 __srcu_transition_to_big(ssp); 330 } 331 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6685367826171131063==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:paulmck/linux-rcu/dev 94/94] kernel/rcu/srcutree.c:313:6: warning: no previous prototype for function 'spin_lock_irqsave_ssp_contention' Date: Fri, 28 Jan 2022 19:18:01 +0800 Message-ID: <202201281904.qRllNV38-lkp@intel.com> List-Id: --===============6685367826171131063== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/dev head: 903a93309e5a59497d3c178cabb67ecc6c843a69 commit: 903a93309e5a59497d3c178cabb67ecc6c843a69 [94/94] srcu: Add contenti= on-triggered addition of srcu_node tree config: hexagon-randconfig-r015-20220128 (https://download.01.org/0day-ci/a= rchive/20220128/202201281904.qRllNV38-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45e= e44b1f32ffdbc995e6fec806271b4b3ba4) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/903a93309e5a594= 97d3c178cabb67ecc6c843a69 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/lin= ux-block git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/dev git checkout 903a93309e5a59497d3c178cabb67ecc6c843a69 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash drivers/firewire/ kernel/r= cu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/rcu/srcutree.c:313:6: warning: no previous prototype for function= 'spin_lock_irqsave_ssp_contention' [-Wmissing-prototypes] void spin_lock_irqsave_ssp_contention(struct srcu_struct *ssp, unsigned = long *flags) ^ kernel/rcu/srcutree.c:313:1: note: declare 'static' if the function is n= ot intended to be used outside of this translation unit void spin_lock_irqsave_ssp_contention(struct srcu_struct *ssp, unsigned = long *flags) ^ static = 1 warning generated. vim +/spin_lock_irqsave_ssp_contention +313 kernel/rcu/srcutree.c 306 = 307 /* 308 * Acquire the specified srcu_struct structure's ->lock, but check f= or 309 * excessive contention, which results in initiation of a transition 310 * to SRCU_SIZE_BIG. But only if the srcutree.convert_to_big module 311 * parameter permits this. 312 */ > 313 void spin_lock_irqsave_ssp_contention(struct srcu_struct *ssp, unsig= ned long *flags) 314 { 315 unsigned long j; 316 = 317 if (spin_trylock_irqsave_rcu_node(ssp, *flags)) 318 return; 319 spin_lock_irqsave_rcu_node(ssp, *flags); 320 if (!(convert_to_big & 0x10) || ssp->srcu_size_state) 321 return; 322 j =3D jiffies; 323 if (ssp->srcu_size_jiffies !=3D j) { 324 ssp->srcu_size_jiffies =3D j; 325 ssp->srcu_n_lock_retries =3D 0; 326 } 327 if (++ssp->srcu_n_lock_retries <=3D small_contention_lim) 328 return; 329 __srcu_transition_to_big(ssp); 330 } 331 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org --===============6685367826171131063==--