• Babu Moger's avatar
    arch/sparc: Remove the check #ifndef __LINUX_SPINLOCK_TYPES_H · 8b93b4a9
    Babu Moger authored
    Saw these compile errors on SPARC when queued rwlock feature is enabled.
    
       CC      kernel/locking/qrwlock.o
    In file included from ./include/asm-generic/qrwlock_types.h:5,
                      from ./arch/sparc/include/asm/qrwlock.h:4,
                      from kernel/locking/qrwlock.c:24:
    ./arch/sparc/include/asm/spinlock_types.h:5:3: error:
             #error "please don't include this file directly"
    
    SPARC has this guard which causes compile error when spinlock_types.h
    is included directly.
    @ifndef __LINUX_SPINLOCK_TYPES_H
    @ error "please don't include this file directly"
    @endif
    
    Remove this un-necessary "ifndef __LINUX_SPINLOCK_TYPES_H" stanza from SPARC.
    Signed-off-by: default avatarBabu Moger <babu.moger@oracle.com>
    Suggested-by: default avatarDavid Miller <davem@davemloft.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8b93b4a9
spinlock_types.h 286 Bytes