Re: drivers/usb/usbip/vudc_rx.c:145: possible bad bitmask ?

2016-08-09 Thread Greg KH
On Mon, Jul 18, 2016 at 01:29:05PM +0100, David Binderman wrote: > Hello there, > > drivers/usb/usbip/vudc_rx.c:145:27: warning: result of ‘11 << 30’ > requires 35 bits to represent, but ‘int’ only has 32 bits > [-Wshift-overflow=] > > Source code is > > urb_p->urb->pipe &= ~(11 << 30); > >

drivers/usb/usbip/vudc_rx.c:145: possible bad bitmask ?

2016-07-18 Thread David Binderman
Hello there, drivers/usb/usbip/vudc_rx.c:145:27: warning: result of ‘11 << 30’ requires 35 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=] Source code is urb_p->urb->pipe &= ~(11 << 30); Maybe better code urb_p->urb->pipe &= ~(11UL << 30); Regards David Binderman --