From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933703AbcK2UPm (ORCPT ); Tue, 29 Nov 2016 15:15:42 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58450 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933545AbcK2UP3 (ORCPT ); Tue, 29 Nov 2016 15:15:29 -0500 Date: Tue, 29 Nov 2016 12:15:25 -0800 From: "Paul E. McKenney" To: kbuild test robot Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org Subject: Re: [rcu:rcu/next 34/34] include/linux/rcupdate.h:426:6: error: 'rcu_scheduler_active' undeclared Reply-To: paulmck@linux.vnet.ibm.com References: <201611300335.md6f69HO%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201611300335.md6f69HO%fengguang.wu@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112920-0004-0000-0000-000010F913B2 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006164; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000193; SDB=6.00787019; UDB=6.00380650; IPR=6.00564706; BA=6.00004928; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013484; XFM=3.00000011; UTC=2016-11-29 20:15:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112920-0005-0000-0000-00007AFE9DFB Message-Id: <20161129201525.GG3924@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-29_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611290335 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 30, 2016 at 03:23:50AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next > head: ccc0666e2049e5818c236e647cf20c552a7b053b > commit: ccc0666e2049e5818c236e647cf20c552a7b053b [34/34] rcu: Allow boot-time use of cond_resched_rcu_qs() > config: i386-randconfig-x008-201648 (attached as .config) > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 > reproduce: > git checkout ccc0666e2049e5818c236e647cf20c552a7b053b > # save the attached .config to linux build tree > make ARCH=i386 > > All error/warnings (new ones prefixed by >>): Fixed (albeit crudely) by 033a28bac0a20de78426e6faf3414637e4775fbc, which replaces the offending commit. Thanx, Paul > In file included from include/linux/srcu.h:33:0, > from include/linux/notifier.h:15, > from include/linux/memory_hotplug.h:6, > from include/linux/mmzone.h:777, > from include/linux/gfp.h:5, > from include/linux/mm.h:9, > from mm/page_alloc.c:18: > mm/page_alloc.c: In function '__alloc_pages_nodemask': > >> include/linux/rcupdate.h:426:6: error: 'rcu_scheduler_active' undeclared (first use in this function) > if (rcu_scheduler_active && !cond_resched()) \ > ^ > >> mm/page_alloc.c:3746:2: note: in expansion of macro 'cond_resched_rcu_qs' > cond_resched_rcu_qs(); > ^~~~~~~~~~~~~~~~~~~ > include/linux/rcupdate.h:426:6: note: each undeclared identifier is reported only once for each function it appears in > if (rcu_scheduler_active && !cond_resched()) \ > ^ > >> mm/page_alloc.c:3746:2: note: in expansion of macro 'cond_resched_rcu_qs' > cond_resched_rcu_qs(); > ^~~~~~~~~~~~~~~~~~~ > -- > In file included from include/linux/srcu.h:33:0, > from include/linux/notifier.h:15, > from include/linux/memory_hotplug.h:6, > from include/linux/mmzone.h:777, > from include/linux/gfp.h:5, > from include/linux/mm.h:9, > from mm/vmscan.c:16: > mm/vmscan.c: In function 'shrink_node_memcg': > >> include/linux/rcupdate.h:426:6: error: 'rcu_scheduler_active' undeclared (first use in this function) > if (rcu_scheduler_active && !cond_resched()) \ > ^ > >> mm/vmscan.c:2355:4: note: in expansion of macro 'cond_resched_rcu_qs' > cond_resched_rcu_qs(); > ^~~~~~~~~~~~~~~~~~~ > include/linux/rcupdate.h:426:6: note: each undeclared identifier is reported only once for each function it appears in > if (rcu_scheduler_active && !cond_resched()) \ > ^ > >> mm/vmscan.c:2355:4: note: in expansion of macro 'cond_resched_rcu_qs' > cond_resched_rcu_qs(); > ^~~~~~~~~~~~~~~~~~~ > mm/vmscan.c: In function 'shrink_node': > >> include/linux/rcupdate.h:426:6: error: 'rcu_scheduler_active' undeclared (first use in this function) > if (rcu_scheduler_active && !cond_resched()) \ > ^ > mm/vmscan.c:2535:6: note: in expansion of macro 'cond_resched_rcu_qs' > cond_resched_rcu_qs(); > ^~~~~~~~~~~~~~~~~~~ > -- > In file included from include/linux/srcu.h:33:0, > from include/linux/notifier.h:15, > from include/linux/memory_hotplug.h:6, > from include/linux/mmzone.h:777, > from include/linux/gfp.h:5, > from include/linux/mm.h:9, > from include/linux/mman.h:4, > from mm/mlock.c:9: > mm/mlock.c: In function 'apply_mlockall_flags': > >> include/linux/rcupdate.h:426:6: error: 'rcu_scheduler_active' undeclared (first use in this function) > if (rcu_scheduler_active && !cond_resched()) \ > ^ > mm/mlock.c:782:3: note: in expansion of macro 'cond_resched_rcu_qs' > cond_resched_rcu_qs(); > ^~~~~~~~~~~~~~~~~~~ > include/linux/rcupdate.h:426:6: note: each undeclared identifier is reported only once for each function it appears in > if (rcu_scheduler_active && !cond_resched()) \ > ^ > mm/mlock.c:782:3: note: in expansion of macro 'cond_resched_rcu_qs' > cond_resched_rcu_qs(); > ^~~~~~~~~~~~~~~~~~~ > > vim +/rcu_scheduler_active +426 include/linux/rcupdate.h > > 420 * This macro resembles cond_resched(), except that it is defined to > 421 * report potential quiescent states to RCU-tasks even if the cond_resched() > 422 * machinery were to be shut off, as some advocate for PREEMPT kernels. > 423 */ > 424 #define cond_resched_rcu_qs() \ > 425 do { \ > > 426 if (rcu_scheduler_active && !cond_resched()) \ > 427 rcu_note_voluntary_context_switch(current); \ > 428 } while (0) > 429 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation