• Olaf Hering's avatar
    [PATCH] USB: fix SN9C10[12] driver for ia64 · 4a3280d8
    Olaf Hering authored
     On Sun, Jul 11, Luca Risolia wrote:
    
    > This single patch contains some updates and cleanups for
    > the W996[87]CF driver and a new experimental V4L2 driver
    > for SONiX SN9C10[12] PC Camera Controllers connected to various
    > image sensors. I have not divided the patch in two logical
    > sub-patches becouse of two independent changes in one common
    > file, KConfigure. Since this mailing list refused the patch,
    > due to its size, I have uploaded it here, as
    > Documentation/SubmittingPatches suggests:
    
    I need this patch for x86_64.
    
    
      CC [M]  drivers/usb/media/sn9c102_core.o
    In file included from drivers/usb/media/sn9c102.h:34,
                     from drivers/usb/media/sn9c102_core.c:43:
    include/asm/rwsem.h:55: error: redefinition of `struct rw_semaphore'
    In file included from drivers/usb/media/sn9c102.h:34,
                     from drivers/usb/media/sn9c102_core.c:43:
    include/asm/rwsem.h:79:1: warning: "__RWSEM_INITIALIZER" redefined
    In file included from include/linux/rwsem.h:25,
                     from include/asm/semaphore.h:43,
                     from include/linux/sched.h:18,
                     from include/linux/module.h:10,
                     from drivers/usb/media/sn9c102_core.c:21:
    include/linux/rwsem-spinlock.h:49:1: warning: this is the location of the previous definition
    include/asm/rwsem.h:87: warning: static declaration for `init_rwsem' follows non-static
    include/asm/rwsem.h:100: warning: `__down_read' declared inline after being called
    include/asm/rwsem.h:100: warning: static declaration for `__down_read' follows non-static
    include/asm/rwsem.h:122: warning: `__down_read_trylock' declared inline after being called
    include/asm/rwsem.h:122: warning: static declaration for `__down_read_trylock' follows non-static
    include/asm/rwsem.h:146: warning: `__down_write' declared inline after being called
    include/asm/rwsem.h:146: warning: static declaration for `__down_write' follows non-static
    include/asm/rwsem.h:171: warning: `__down_write_trylock' declared inline after being called
    include/asm/rwsem.h:171: warning: static declaration for `__down_write_trylock' follows non-static
    include/asm/rwsem.h:184: warning: `__up_read' declared inline after being called
    include/asm/rwsem.h:184: warning: static declaration for `__up_read' follows non-static
    include/asm/rwsem.h:208: warning: `__up_write' declared inline after being called
    include/asm/rwsem.h:208: warning: static declaration for `__up_write' follows non-static
    include/asm/rwsem.h:233: warning: `__downgrade_write' declared inline after being called
    include/asm/rwsem.h:233: warning: static declaration for `__downgrade_write' follows non-static
    make[3]: *** [drivers/usb/media/sn9c102_core.o] Error 1
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    4a3280d8
sn9c102.h 5.89 KB