From: "Paul E. McKenney" <paulmck@kernel.org> To: kernel test robot <lkp@intel.com> Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org Subject: Re: [PATCH rcu 08/11] srcu: Drop needless initialization of sdp in srcu_gp_start() Date: Mon, 18 Apr 2022 20:25:15 -0700 [thread overview] Message-ID: <20220419032515.GA4285@paulmck-ThinkPad-P17-Gen-1> (raw) In-Reply-To: <202204191057.dy5dzVNo-lkp@intel.com> On Tue, Apr 19, 2022 at 10:03:17AM +0800, kernel test robot wrote: > Hi "Paul, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on linux/master v5.18-rc3] > [cannot apply to paulmck-rcu/dev paulmck-rcu/rcu/next next-20220414] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] I recently updated my patch-generation scripts, and they apparently need help. Please ignore this patch. The 21/21 variant is the correct version. Thanx, Paul > url: https://github.com/intel-lab-lkp/linux/commits/Paul-E-McKenney/Miscellaneous-fixes-for-v5-19/20220419-065730 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b2d229d4ddb17db541098b83524d901257e93845 > config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220419/202204191057.dy5dzVNo-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 429cbac0390654f90bba18a41799464adf31a5ec) > 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/intel-lab-lkp/linux/commit/375cc5ddcf9646bfab6ec257cfa297439ed15273 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Paul-E-McKenney/Miscellaneous-fixes-for-v5-19/20220419-065730 > git checkout 375cc5ddcf9646bfab6ec257cfa297439ed15273 > # 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=i386 SHELL=/bin/bash kernel/rcu/ > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <lkp@intel.com> > > All warnings (new ones prefixed by >>): > > >> kernel/rcu/srcutree.c:443:25: warning: variable 'sdp' is uninitialized when used here [-Wuninitialized] > rcu_segcblist_advance(&sdp->srcu_cblist, > ^~~ > kernel/rcu/srcutree.c:437:23: note: initialize the variable 'sdp' to silence this warning > struct srcu_data *sdp; > ^ > = NULL > 1 warning generated. > > > vim +/sdp +443 kernel/rcu/srcutree.c > > dad81a2026841b Paul E. McKenney 2017-03-25 431 > dad81a2026841b Paul E. McKenney 2017-03-25 432 /* > dad81a2026841b Paul E. McKenney 2017-03-25 433 * Start an SRCU grace period. > dad81a2026841b Paul E. McKenney 2017-03-25 434 */ > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 435 static void srcu_gp_start(struct srcu_struct *ssp) > dad81a2026841b Paul E. McKenney 2017-03-25 436 { > 375cc5ddcf9646 Lukas Bulwahn 2022-04-18 437 struct srcu_data *sdp; > dad81a2026841b Paul E. McKenney 2017-03-25 438 int state; > dad81a2026841b Paul E. McKenney 2017-03-25 439 > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 440 lockdep_assert_held(&ACCESS_PRIVATE(ssp, lock)); > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 441 WARN_ON_ONCE(ULONG_CMP_GE(ssp->srcu_gp_seq, ssp->srcu_gp_seq_needed)); > eb4c2382272ae7 Dennis Krein 2018-10-26 442 spin_lock_rcu_node(sdp); /* Interrupts already disabled. */ > da915ad5cf25b5 Paul E. McKenney 2017-04-05 @443 rcu_segcblist_advance(&sdp->srcu_cblist, > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 444 rcu_seq_current(&ssp->srcu_gp_seq)); > da915ad5cf25b5 Paul E. McKenney 2017-04-05 445 (void)rcu_segcblist_accelerate(&sdp->srcu_cblist, > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 446 rcu_seq_snap(&ssp->srcu_gp_seq)); > eb4c2382272ae7 Dennis Krein 2018-10-26 447 spin_unlock_rcu_node(sdp); /* Interrupts remain disabled. */ > 2da4b2a7fd8de5 Paul E. McKenney 2017-04-25 448 smp_mb(); /* Order prior store to ->srcu_gp_seq_needed vs. GP start. */ > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 449 rcu_seq_start(&ssp->srcu_gp_seq); > 710426068dc60f Paul E. McKenney 2020-01-03 450 state = rcu_seq_state(ssp->srcu_gp_seq); > dad81a2026841b Paul E. McKenney 2017-03-25 451 WARN_ON_ONCE(state != SRCU_STATE_SCAN1); > dad81a2026841b Paul E. McKenney 2017-03-25 452 } > dad81a2026841b Paul E. McKenney 2017-03-25 453 > > -- > 0-DAY CI Kernel Test Service > https://01.org/lkp
WARNING: multiple messages have this Message-ID (diff)
From: Paul E. McKenney <paulmck@kernel.org> To: kbuild-all@lists.01.org Subject: Re: [PATCH rcu 08/11] srcu: Drop needless initialization of sdp in srcu_gp_start() Date: Mon, 18 Apr 2022 20:25:15 -0700 [thread overview] Message-ID: <20220419032515.GA4285@paulmck-ThinkPad-P17-Gen-1> (raw) In-Reply-To: <202204191057.dy5dzVNo-lkp@intel.com> [-- Attachment #1: Type: text/plain, Size: 4585 bytes --] On Tue, Apr 19, 2022 at 10:03:17AM +0800, kernel test robot wrote: > Hi "Paul, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on linux/master v5.18-rc3] > [cannot apply to paulmck-rcu/dev paulmck-rcu/rcu/next next-20220414] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] I recently updated my patch-generation scripts, and they apparently need help. Please ignore this patch. The 21/21 variant is the correct version. Thanx, Paul > url: https://github.com/intel-lab-lkp/linux/commits/Paul-E-McKenney/Miscellaneous-fixes-for-v5-19/20220419-065730 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b2d229d4ddb17db541098b83524d901257e93845 > config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220419/202204191057.dy5dzVNo-lkp(a)intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 429cbac0390654f90bba18a41799464adf31a5ec) > 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/intel-lab-lkp/linux/commit/375cc5ddcf9646bfab6ec257cfa297439ed15273 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Paul-E-McKenney/Miscellaneous-fixes-for-v5-19/20220419-065730 > git checkout 375cc5ddcf9646bfab6ec257cfa297439ed15273 > # 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=i386 SHELL=/bin/bash kernel/rcu/ > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <lkp@intel.com> > > All warnings (new ones prefixed by >>): > > >> kernel/rcu/srcutree.c:443:25: warning: variable 'sdp' is uninitialized when used here [-Wuninitialized] > rcu_segcblist_advance(&sdp->srcu_cblist, > ^~~ > kernel/rcu/srcutree.c:437:23: note: initialize the variable 'sdp' to silence this warning > struct srcu_data *sdp; > ^ > = NULL > 1 warning generated. > > > vim +/sdp +443 kernel/rcu/srcutree.c > > dad81a2026841b Paul E. McKenney 2017-03-25 431 > dad81a2026841b Paul E. McKenney 2017-03-25 432 /* > dad81a2026841b Paul E. McKenney 2017-03-25 433 * Start an SRCU grace period. > dad81a2026841b Paul E. McKenney 2017-03-25 434 */ > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 435 static void srcu_gp_start(struct srcu_struct *ssp) > dad81a2026841b Paul E. McKenney 2017-03-25 436 { > 375cc5ddcf9646 Lukas Bulwahn 2022-04-18 437 struct srcu_data *sdp; > dad81a2026841b Paul E. McKenney 2017-03-25 438 int state; > dad81a2026841b Paul E. McKenney 2017-03-25 439 > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 440 lockdep_assert_held(&ACCESS_PRIVATE(ssp, lock)); > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 441 WARN_ON_ONCE(ULONG_CMP_GE(ssp->srcu_gp_seq, ssp->srcu_gp_seq_needed)); > eb4c2382272ae7 Dennis Krein 2018-10-26 442 spin_lock_rcu_node(sdp); /* Interrupts already disabled. */ > da915ad5cf25b5 Paul E. McKenney 2017-04-05 @443 rcu_segcblist_advance(&sdp->srcu_cblist, > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 444 rcu_seq_current(&ssp->srcu_gp_seq)); > da915ad5cf25b5 Paul E. McKenney 2017-04-05 445 (void)rcu_segcblist_accelerate(&sdp->srcu_cblist, > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 446 rcu_seq_snap(&ssp->srcu_gp_seq)); > eb4c2382272ae7 Dennis Krein 2018-10-26 447 spin_unlock_rcu_node(sdp); /* Interrupts remain disabled. */ > 2da4b2a7fd8de5 Paul E. McKenney 2017-04-25 448 smp_mb(); /* Order prior store to ->srcu_gp_seq_needed vs. GP start. */ > aacb5d91ab1bfb Paul E. McKenney 2018-10-28 449 rcu_seq_start(&ssp->srcu_gp_seq); > 710426068dc60f Paul E. McKenney 2020-01-03 450 state = rcu_seq_state(ssp->srcu_gp_seq); > dad81a2026841b Paul E. McKenney 2017-03-25 451 WARN_ON_ONCE(state != SRCU_STATE_SCAN1); > dad81a2026841b Paul E. McKenney 2017-03-25 452 } > dad81a2026841b Paul E. McKenney 2017-03-25 453 > > -- > 0-DAY CI Kernel Test Service > https://01.org/lkp
next prev parent reply other threads:[~2022-04-19 3:25 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-18 22:53 [PATCH rcu 0/11] Miscellaneous fixes for v5.19 Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 01/11] rcu: Clarify fill-the-gap comment in rcu_segcblist_advance() Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 02/11] rcu: Fix rcu_preempt_deferred_qs_irqrestore() strict QS reporting Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 03/11] rcu: Check for jiffies going backwards Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 04/11] kernel/smp: Provide boot-time timeout for CSD lock diagnostics Paul E. McKenney 2022-04-19 7:11 ` Juergen Gross 2022-04-19 16:44 ` Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 05/11] rcu: Add comments to final rcu_gp_cleanup() "if" statement Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 06/11] rcu: Print number of online CPUs in RCU CPU stall-warning messages Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 07/11] rcu: Fix preemption mode check on synchronize_rcu[_expedited]() Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 08/11] srcu: Drop needless initialization of sdp in srcu_gp_start() Paul E. McKenney 2022-04-19 2:03 ` kernel test robot 2022-04-19 3:25 ` Paul E. McKenney [this message] 2022-04-19 3:25 ` Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 09/11] rcu: Check for successful spawn of ->boost_kthread_task Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 10/11] rcu_sync: Fix comment to properly reflect rcu_sync_exit() behavior Paul E. McKenney 2022-04-18 22:53 ` [PATCH rcu 11/11] rcu: Use IRQ_WORK_INIT_HARD() to avoid rcu_read_unlock() hangs Paul E. McKenney [not found] ` <20220419085607.2014-1-hdanton@sina.com> 2022-04-19 13:46 ` [PATCH rcu 04/11] kernel/smp: Provide boot-time timeout for CSD lock diagnostics Paul E. McKenney 2022-04-19 14:11 ` Dmitry Vyukov 2022-04-19 16:49 ` Paul E. McKenney [not found] ` <20220419231820.2089-1-hdanton@sina.com> 2022-04-20 12:17 ` Dmitry Vyukov 2022-04-20 13:41 ` Paul E. McKenney 2022-04-20 14:00 ` Dmitry Vyukov 2022-04-20 14:12 ` Paul E. McKenney
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220419032515.GA4285@paulmck-ThinkPad-P17-Gen-1 \ --to=paulmck@kernel.org \ --cc=kbuild-all@lists.01.org \ --cc=lkp@intel.com \ --cc=llvm@lists.linux.dev \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.