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

[PATCH] better USB_MON dependencies

This makes the USB_MON less confusing.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
4749f32d 24665cd0

+8 -13
+1 -1
drivers/usb/core/hcd.c
··· 1794 1794 1795 1795 /*-------------------------------------------------------------------------*/ 1796 1796 1797 - #if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE) 1797 + #if defined(CONFIG_USB_MON) 1798 1798 1799 1799 struct usb_mon_operations *mon_ops; 1800 1800
+1 -1
drivers/usb/core/hcd.h
··· 399 399 400 400 /*-------------------------------------------------------------------------*/ 401 401 402 - #if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE) 402 + #if defined(CONFIG_USB_MON) 403 403 404 404 struct usb_mon_operations { 405 405 void (*urb_submit)(struct usb_bus *bus, struct urb *urb);
+4 -9
drivers/usb/mon/Kconfig
··· 2 2 # USB Monitor configuration 3 3 # 4 4 5 - # In normal life, it makes little sense to have usbmon as a module, and in fact 6 - # it is harmful, because there is no way to autoload the module. 7 - # The 'm' option is allowed for hackers who debug the usbmon itself, 8 - # and for those who have usbcore as a module. 9 5 config USB_MON 10 - tristate "USB Monitor" 11 - depends on USB 6 + bool "USB Monitor" 7 + depends on USB!=n 12 8 default y 13 9 help 14 10 If you say Y here, a component which captures the USB traffic ··· 13 17 Harding's USBMon. 14 18 15 19 This is somewhat experimental at this time, but it should be safe, 16 - as long as you aren't building this as a module and then removing it. 17 - 18 - If unsure, say Y. Do not say M. 20 + as long as you aren't using modular USB and try to remove this 21 + module.
+1 -1
drivers/usb/mon/Makefile
··· 4 4 5 5 usbmon-objs := mon_main.o mon_stat.o mon_text.o 6 6 7 - obj-$(CONFIG_USB_MON) += usbmon.o 7 + obj-$(CONFIG_USB) += usbmon.o
+1 -1
include/linux/usb.h
··· 290 290 struct class_device *class_dev; /* class device for this bus */ 291 291 struct kref kref; /* handles reference counting this bus */ 292 292 void (*release)(struct usb_bus *bus); /* function to destroy this bus's memory */ 293 - #if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE) 293 + #if defined(CONFIG_USB_MON) 294 294 struct mon_bus *mon_bus; /* non-null when associated */ 295 295 int monitored; /* non-zero when monitored */ 296 296 #endif