Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: usbip: export usbip_debug_flag as a usbip-core module parameter.

Now usbip_common.c's pr_fmt is the only thing setup by CONFIG_USBIP_DEBUG
that you can't subsequently alter using this parameter.

Signed-off-by: W. Trevor King <wking@tremily.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

W. Trevor King and committed by
Greg Kroah-Hartman
93efc55b 5afbfa63

+4
+4
drivers/staging/usbip/usbip_common.c
··· 22 22 #include <linux/fs.h> 23 23 #include <linux/kernel.h> 24 24 #include <linux/slab.h> 25 + #include <linux/stat.h> 25 26 #include <linux/module.h> 27 + #include <linux/moduleparam.h> 26 28 #include <net/sock.h> 27 29 28 30 #include "usbip_common.h" ··· 38 36 unsigned long usbip_debug_flag; 39 37 #endif 40 38 EXPORT_SYMBOL_GPL(usbip_debug_flag); 39 + module_param(usbip_debug_flag, ulong, S_IRUGO|S_IWUSR); 40 + MODULE_PARM_DESC(usbip_debug_flag, "debug flags (defined in usbip_common.h)"); 41 41 42 42 /* FIXME */ 43 43 struct device_attribute dev_attr_usbip_debug;