• Rolf Eike Beer's avatar
    parisc: add missing includes in asm/spinlock.h · 1cab4201
    Rolf Eike Beer authored
    This leads to this errors:
    
    In file included from arch/parisc/include/asm/atomic.h:20:0,
                     from include/linux/atomic.h:4,
                     from arch/parisc/include/asm/bitops.h:56,
                     from include/linux/bitops.h:22,
                     from include/linux/kernel.h:19,
                     from include/linux/sched.h:55,
                     from arch/parisc/kernel/asm-offsets.c:31:
    arch/parisc/include/asm/spinlock.h: In function ‘arch_spin_is_locked’:
    arch/parisc/include/asm/spinlock.h:9:2: error: implicit declaration of function ‘__ldcw_align’ [-Werror=implicit-function-declaration]
    arch/parisc/include/asm/spinlock.h:9:29: warning: initialization makes pointer from integer without a cast [enabled by default]
    arch/parisc/include/asm/spinlock.h: In function ‘arch_spin_lock_flags’:
    arch/parisc/include/asm/spinlock.h:22:2: error: implicit declaration of function ‘mb’ [-Werror=implicit-function-declaration]
    arch/parisc/include/asm/spinlock.h:23:4: warning: assignment makes pointer from integer without a cast [enabled by default]
    arch/parisc/include/asm/spinlock.h:24:2: error: implicit declaration of function ‘__ldcw’ [-Werror=implicit-function-declaration]
    Signed-off-by: default avatarRolf Eike Beer <eike-kernel@sf-tec.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    1cab4201
spinlock.h 4.66 KB