Skip to content
  • Ben Dooks (Codethink)'s avatar
    6f9ac343
    usb: host: oxu210hp-hcd: fix __iomem annotations · 6f9ac343
    Ben Dooks (Codethink) authored
    
    
    There are a number of places in the driver where it fails
    to maintain __iomem on pointers used to access registers
    so fixup the warnings by adding these in the appropriate
    places.
    
    Examples of the sparse warnings fixed:
    
    drivers/usb/host/oxu210hp-hcd.c:686:9: warning: incorrect type in argument 2 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:686:9:    expected void volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:686:9:    got void *
    drivers/usb/host/oxu210hp-hcd.c:686:9: warning: incorrect type in argument 2 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:686:9:    expected void volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:686:9:    got void *
    drivers/usb/host/oxu210hp-hcd.c:686:9: warning: incorrect type in argument 2 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:686:9:    expected void volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:686:9:    got void *
    drivers/usb/host/oxu210hp-hcd.c:681:16: warning: incorrect type in argument 1 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:681:16:    expected void const volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:681:16:    got void *
    
    Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
    Link: https://lore.kernel.org/r/20191017171934.8771-1-ben.dooks@codethink.co.uk
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    6f9ac343
    usb: host: oxu210hp-hcd: fix __iomem annotations
    Ben Dooks (Codethink) authored
    
    
    There are a number of places in the driver where it fails
    to maintain __iomem on pointers used to access registers
    so fixup the warnings by adding these in the appropriate
    places.
    
    Examples of the sparse warnings fixed:
    
    drivers/usb/host/oxu210hp-hcd.c:686:9: warning: incorrect type in argument 2 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:686:9:    expected void volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:686:9:    got void *
    drivers/usb/host/oxu210hp-hcd.c:686:9: warning: incorrect type in argument 2 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:686:9:    expected void volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:686:9:    got void *
    drivers/usb/host/oxu210hp-hcd.c:686:9: warning: incorrect type in argument 2 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:686:9:    expected void volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:686:9:    got void *
    drivers/usb/host/oxu210hp-hcd.c:681:16: warning: incorrect type in argument 1 (different address spaces)
    drivers/usb/host/oxu210hp-hcd.c:681:16:    expected void const volatile [noderef] <asn:2> *addr
    drivers/usb/host/oxu210hp-hcd.c:681:16:    got void *
    
    Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
    Link: https://lore.kernel.org/r/20191017171934.8771-1-ben.dooks@codethink.co.uk
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading