• Harvey Harrison's avatar
    USB: wusb: annotate association types withe proper endianness · d767d888
    Harvey Harrison authored
    Also a trivial annotation in rh.c for:
    drivers/usb/wusbcore/rh.c:366:9: warning: incorrect type in assignment (different base types)
    drivers/usb/wusbcore/rh.c:366:9:    expected unsigned short [unsigned] [short] [usertype] <noident>
    drivers/usb/wusbcore/rh.c:366:9:    got restricted __le16 [usertype] <noident>
    drivers/usb/wusbcore/rh.c:367:9: warning: incorrect type in assignment (different base types)
    drivers/usb/wusbcore/rh.c:367:9:    expected unsigned short [unsigned] [short] [usertype] <noident>
    drivers/usb/wusbcore/rh.c:367:9:    got restricted __le16 [usertype] <noident>
    
    Association types annotation fixes piles of warnings similar to:
    drivers/usb/wusbcore/cbaf.c:238:30: warning: incorrect type in initializer (different base types)
    drivers/usb/wusbcore/cbaf.c:238:30:    expected restricted __le16 [usertype] id
    drivers/usb/wusbcore/cbaf.c:238:30:    got int
    drivers/usb/wusbcore/cbaf.c:238:30: warning: incorrect type in initializer (different base types)
    drivers/usb/wusbcore/cbaf.c:238:30:    expected restricted __le16 [usertype] len
    drivers/usb/wusbcore/cbaf.c:238:30:    got int
    Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
    Cc: David Vrabel <david.vrabel@csr.com>
    Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    d767d888
rh.c 12.8 KB