Re: [patch] usb: gadget: add a sparse endian notation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 17, 2012 at 09:30:22AM +0300, Dan Carpenter wrote:
> The original code works fine, but Sparse complains because it isn't
> annotated properly.
> 
> drivers/usb/gadget/composite.c:793:26: warning: incorrect type in assignment (different base types)
> drivers/usb/gadget/composite.c:793:26:    expected unsigned short [unsigned] [usertype] language
> devel/drivers/usb/gadget/composite.c:793:26:    got restricted __le16 [usertype] <noident>
> devel/drivers/usb/gadget/composite.c:795:29: warning: restricted __le16 degrades to integer
> drivers/usb/gadget/composite.c:798:24: warning: incorrect type in assignment (different base types)
> drivers/usb/gadget/composite.c:798:24:    expected restricted __le16 [usertype] <noident>
> devel/drivers/usb/gadget/composite.c:798:24:    got unsigned short [unsigned] [usertype] language
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

applied, thanks.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux