This is a note to let you know that I've just added the patch titled Subject: USB core: fix compiler warning about usb_autosuspend_work
to my gregkh-2.6 tree. Its filename is usb-core-fix-compiler-warning-about-usb_autosuspend_work.patch This tree can be found at http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/ >From [EMAIL PROTECTED] Mon Nov 13 12:02:13 2006 Date: Mon, 13 Nov 2006 15:02:04 -0500 (EST) From: Alan Stern <[EMAIL PROTECTED]> To: Greg KH <[EMAIL PROTECTED]> cc: USB development list <linux-usb-devel@lists.sourceforge.net> Subject: USB core: fix compiler warning about usb_autosuspend_work Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII This patch (as821) fixes a compiler warning when CONFIG_PM isn't on ("usb_autosuspend_work" defined but not used). Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/usb.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- gregkh-2.6.orig/drivers/usb/core/usb.c +++ gregkh-2.6/drivers/usb/core/usb.c @@ -200,13 +200,6 @@ static void ksuspend_usb_cleanup(void) destroy_workqueue(ksuspend_usb_wq); } -#else - -#define ksuspend_usb_init() 0 -#define ksuspend_usb_cleanup() do {} while (0) - -#endif - #ifdef CONFIG_USB_SUSPEND /* usb_autosuspend_work - callback routine to autosuspend a USB device */ @@ -225,7 +218,14 @@ static void usb_autosuspend_work(void *_ static void usb_autosuspend_work(void *_udev) {} -#endif +#endif /* CONFIG_USB_SUSPEND */ + +#else + +#define ksuspend_usb_init() 0 +#define ksuspend_usb_cleanup() do {} while (0) + +#endif /* CONFIG_PM */ /** * usb_alloc_dev - usb device constructor (usbcore-internal) Patches currently in gregkh-2.6 which might be from [EMAIL PROTECTED] are usb/usb-hid-handle-stall-on-interrupt-endpoint.patch usb/usb-expand-autosuspend-autoresume-api.patch usb/usb-add-autosuspend-support-to-the-hub-driver.patch usb/ehci-hcd-fix-budget_pool-allocation-for-machines-with-multiple-ehci-controllers.patch usb/usb-core-don-t-match-interface-descriptors-for-vendor-specific-devices.patch usb/usb-takes-31-devices-per-hub.patch usb/usb-hub-root-hub-code-takes-more-than-15-devices.patch usb/usb-ohci-disable-rhsc-inside-interrupt-handler.patch usb/usb-ohci-hcd-fix-compiler-warning.patch usb/usb-ohci-remove-stale-testing-code-from-root-hub-resume.patch usb/usb-autosuspend-code-consolidation.patch usb/usb-move-private-hub-declarations-out-of-public-header-file.patch usb/ehci-fix-memory-pool-name-allocation.patch usb/ehci-fix-root-hub-and-port-suspend-resume-problems.patch usb/usb-core-fix-compiler-warning-about-usb_autosuspend_work.patch usb/usb-net2280-don-t-send-unwanted-zero-length-packets.patch usb/ohci-change-priority-level-of-resume-log-message.patch ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel