On Thu, 12 Jan 2012, Fabio Estevam wrote: > Hi Alan, > > On Thu, Jan 12, 2012 at 1:17 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > > > If you don't mind, please submit a similar patch for file_storage.c. > > On file_storage.c I don't any see variable types mismatches. > > The members of mod_data struct match the types passed to the several > module_param_named lines. Really? Even the removable, can_stall, and cdrom fields? static struct { char *file[FSG_MAX_LUNS]; char *serial; int ro[FSG_MAX_LUNS]; int nofua[FSG_MAX_LUNS]; unsigned int num_filenames; unsigned int num_ros; unsigned int num_nofuas; unsigned int nluns; int removable; int can_stall; int cdrom; ... } mod_data = { // Default values ... }; ... module_param_array_named(ro, mod_data.ro, bool, &mod_data.num_ros, S_IRUGO); MODULE_PARM_DESC(ro, "true to force read-only"); module_param_array_named(nofua, mod_data.nofua, bool, &mod_data.num_nofuas, S_IRUGO); MODULE_PARM_DESC(nofua, "true to ignore SCSI WRITE(10,12) FUA bit"); module_param_named(luns, mod_data.nluns, uint, S_IRUGO); MODULE_PARM_DESC(luns, "number of LUNs"); module_param_named(removable, mod_data.removable, bool, S_IRUGO); MODULE_PARM_DESC(removable, "true to simulate removable media"); module_param_named(stall, mod_data.can_stall, bool, S_IRUGO); MODULE_PARM_DESC(stall, "false to prevent bulk stalls"); module_param_named(cdrom, mod_data.cdrom, bool, S_IRUGO); MODULE_PARM_DESC(cdrom, "true to emulate cdrom instead of disk"); I don't see how this is any different from f_mass_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