Re: [PATCH-RT] preempt.h: Fix implicit declaration of 'preempt_check_resched_rt'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, 2012-03-08 at 21:13 +0100, John Kacur wrote:
> 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 ‘trigger_softirq’:
> /home/jkacur/linux-rt/block/blk-softirq.c:54: error: implicit declaration of function ‘preempt_check_resched_rt’
> 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 <williams@xxxxxxxxxx>
Why Clark's SOB? Did he write it and send it to you?
-- Steve
> Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
> ---
> 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)
>
> #endif /* CONFIG_PREEMPT_COUNT */
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[RT Stable]
[Kernel Newbies]
[Share Photos]
[IDE]
[Security]
[Git]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Linux ATA RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]
[Linux Resources]