From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kacur Subject: [PATCH-RT] preempt.h: Fix implicit declaration of 'preempt_check_resched_rt' Date: Thu, 8 Mar 2012 21:13:11 +0100 Message-ID: <1331237591-4406-1-git-send-email-jkacur@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: lkml , Steven Rostedt , John Kacur , Clark Williams To: Thomas Gleixner , rt-users Return-path: Received: from mail-bk0-f46.google.com ([209.85.214.46]:43536 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753299Ab2CHUNU (ORCPT ); Thu, 8 Mar 2012 15:13:20 -0500 Sender: linux-rt-users-owner@vger.kernel.org List-ID: When building a non-preempt kernel where CONFIG_PREEMPT_COUNT is not defined the following build break occurs. /home/jkacur/linux-rt/block/blk-softirq.c: In function =E2=80=98trigger= _softirq=E2=80=99: /home/jkacur/linux-rt/block/blk-softirq.c:54: error: implicit declarati= on of function =E2=80=98preempt_check_resched_rt=E2=80=99 make[2]: *** [block/blk-softirq.o] Error 1 make[1]: *** [block/blk-softirq.o] Error 2 make: *** [sub-make] Error 2 This patch fixes the build error by adding a define to the !CONFIG_PREEMPT_COUNT section. Signed-off-by: Clark Williams Signed-off-by: John Kacur --- include/linux/preempt.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/preempt.h b/include/linux/preempt.h index fa40695..58d8982 100644 --- a/include/linux/preempt.h +++ b/include/linux/preempt.h @@ -107,6 +107,7 @@ do { \ #define preempt_disable_notrace() do { } while (0) #define preempt_enable_no_resched_notrace() do { } while (0) #define preempt_enable_notrace() do { } while (0) +#define preempt_check_resched_rt() do { } while (0) =20 #endif /* CONFIG_PREEMPT_COUNT */ =20 --=20 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-user= s" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html