[lkml]   [2012]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH RT 1/3] spinlock/rt: Include bug.h in spinlock_rt.h to satisfy BUG() usage
    From: Steven Rostedt <>

    Some archs (powerpc) failed to compile because of the reference to
    BUG() in spinlock_rt.h. Although bug.h is included in many headers,
    if spinlock.h is included in a C file before that, it will fail to

    Signed-off-by: Steven Rostedt <>
    include/linux/spinlock_rt.h | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/include/linux/spinlock_rt.h b/include/linux/spinlock_rt.h
    index 3b555b4..0618387 100644
    --- a/include/linux/spinlock_rt.h
    +++ b/include/linux/spinlock_rt.h
    @@ -5,6 +5,8 @@
    #error Do not include directly. Use spinlock.h

    +#include <linux/bug.h>
    extern void
    __rt_spin_lock_init(spinlock_t *lock, char *name, struct lock_class_key *key);


     \ /
      Last update: 2012-06-23 06:01    [W:0.022 / U:2.568 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site