From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755853AbbCLWJE (ORCPT ); Thu, 12 Mar 2015 18:09:04 -0400 Received: from smtprelay0056.hostedemail.com ([216.40.44.56]:59556 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752179AbbCLWJA (ORCPT ); Thu, 12 Mar 2015 18:09:00 -0400 X-Session-Marker: 6E657665747340676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1539:1567:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2901:3138:3139:3140:3141:3142:3865:3867:3871:3872:3874:4321:5007:6261:9707:10004:10400:10848:11026:11473:11658:11914:12043:12438:12517:12519:12555:13069:13161:13229:13311:13357:14394:21080:21088,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: night78_142d6d5df3c46 X-Filterd-Recvd-Size: 1471 Date: Thu, 12 Mar 2015 18:08:57 -0400 From: Steven Rostedt To: LKML , linux-rt-users Cc: Thomas Gleixner , Sebastian Andrzej Siewior Subject: [PATCH RT] irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL Message-ID: <20150312180857.31a0f7d1@gandalf.local.home> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The hirq_work_list is only defined when PREEMPT_RT_FULL is configured. Most access to it is within an #ifdef CONFIG_PREEMPT_RT_FULL, except for one. Encapsulate that location too. Signed-off-by: Steven Rostedt --- diff --git a/kernel/irq_work.c b/kernel/irq_work.c index 0c6491228b17..4b53470bf97b 100644 --- a/kernel/irq_work.c +++ b/kernel/irq_work.c @@ -147,7 +147,9 @@ bool irq_work_needs_cpu(void) if (llist_empty(raised)) if (llist_empty(lazy)) +#ifdef CONFIG_PREEMPT_RT_FULL if (llist_empty(this_cpu_ptr(&hirq_work_list))) +#endif return false; /* All work should have been flushed before going offline */