• Anton Blanchard's avatar
    [PATCH] ppc64: fix __rw_yield prototype · ba5d8937
    Anton Blanchard authored
    From: Nathan Lynch <nathanl@austin.ibm.com>
    
    Hit this in latest bk:
    
    include/asm/spinlock.h: In function `_raw_read_lock':
    include/asm/spinlock.h:198: warning: passing arg 1 of `__rw_yield' from incompatible pointer type
    include/asm/spinlock.h: In function `_raw_write_lock':
    include/asm/spinlock.h:255: warning: passing arg 1 of `__rw_yield' from incompatible pointer type
    
    This seems to have been broken by the out-of-line spinlocks patch.
    You won't hit it unless you've enabled CONFIG_PPC_SPLPAR.  Use the
    rwlock_t for the argument type, and move the definition of rwlock_t up
    next to that of spinlock_t.
    Signed-off-by: default avatarNathan Lynch <nathanl@austin.ibm.com>
    Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    ba5d8937
spinlock.h 5.95 KB