lkml.org 
[lkml]   [2007]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[-mm patch] alpha bitops.h must #include <asm/barrier.h>
    On Fri, Aug 31, 2007 at 09:58:22PM -0700, Andrew Morton wrote:
    >...
    > Changes since 2.6.23-rc3-mm1:
    >...
    > +alpha-lock-bitops.patch
    >...
    > various stuff
    >...

    This patch fixes the following compile error:

    <-- snip -->

    ...
    CC arch/alpha/kernel/asm-offsets.s
    In file included from /home/bunk/linux/kernel-2.6/linux-2.6.23-rc4-mm1/include/linux/bitops.h:17,
    from /home/bunk/linux/kernel-2.6/linux-2.6.23-rc4-mm1/include/linux/kernel.h:15,
    from /home/bunk/linux/kernel-2.6/linux-2.6.23-rc4-mm1/include/linux/sched.h:50,
    from /home/bunk/linux/kernel-2.6/linux-2.6.23-rc4-mm1/arch/alpha/kernel/asm-offsets.c:9:
    include2/asm/bitops.h: In function 'clear_bit_unlock':
    include2/asm/bitops.h:75: error: implicit declaration of function 'smp_mb'
    make[2]: *** [arch/alpha/kernel/asm-offsets.s] Error 1

    <-- snip -->

    Signed-off-by: Adrian Bunk <bunk@kernel.org>

    ---
    6df784c9aa4ba1ff2062b63e733c645e8b1e5203
    diff --git a/include/asm-alpha/bitops.h b/include/asm-alpha/bitops.h
    index ffec8a8..381b4f5 100644
    --- a/include/asm-alpha/bitops.h
    +++ b/include/asm-alpha/bitops.h
    @@ -2,6 +2,7 @@
    #define _ALPHA_BITOPS_H

    #include <asm/compiler.h>
    +#include <asm/barrier.h>

    /*
    * Copyright 1994, Linus Torvalds.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-09-09 22:27    [W:4.924 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site