On Thu, 12 Jan 2012, Fabio Estevam wrote: > Fix the following build warnings: > > CC [M] drivers/usb/gadget/acm_ms.o > drivers/usb/gadget/acm_ms.c: In function ‘__check_ro’: > drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type > drivers/usb/gadget/acm_ms.c: In function ‘__check_removable’: > drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type > drivers/usb/gadget/acm_ms.c: In function ‘__check_cdrom’: > drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type > drivers/usb/gadget/acm_ms.c: In function ‘__check_nofua’: > drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type > drivers/usb/gadget/acm_ms.c: In function ‘__check_stall’: > drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type > CC [M] drivers/usb/gadget/mass_storage.o > drivers/usb/gadget/mass_storage.c: In function ‘__check_ro’: > drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type > drivers/usb/gadget/mass_storage.c: In function ‘__check_removable’: > drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type > drivers/usb/gadget/mass_storage.c: In function ‘__check_cdrom’: > drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type > drivers/usb/gadget/mass_storage.c: In function ‘__check_nofua’: > drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type > drivers/usb/gadget/mass_storage.c: In function ‘__check_stall’: > drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type > > Declare the fsg_module_parameters fields as "bool" so that they can match the types > passed in FSG_MODULE_PARAM_ARRAY macro. > > Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > --- > drivers/usb/gadget/f_mass_storage.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) If you don't mind, please submit a similar patch for file_storage.c. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html