lkml.org 
[lkml]   [2016]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectdrivers/usb/usbip/vudc_rx.c:145: possible bad bitmask ?
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

\
 
 \ /
  Last update: 2016-07-18 15:01    [W:0.153 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site