From: Arnd Bergmann Date: Thu, 28 Mar 2013 21:09:46 +0000 (+0000) Subject: usb: ehci: mark unlink_empty_async_suspended() as __maybe_unused X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b55c2ad0e5c8bbbb36cedf6a37f9d029cfd403;p=pandora-kernel.git usb: ehci: mark unlink_empty_async_suspended() as __maybe_unused Patch 4d053fdac3 "usb: ehci: unlink_empty_async_suspended() only used with CONFIG_PM" tried to hide the unlink_empty_async_suspended function inside of an #ifdef to work around an unused function warning. Unfortunately that had the effect of introducing a new warning: drivers/usb/host/ehci-q.c:1297:13: warning: 'unlink_empty_async_suspended' declared 'static' but never defined [-Wunused-function] While we could add another #ifdef around the function declaration to avoid this, a nicer solution is to mark it as __maybe_unused, which will let gcc silently drop the function definition when it is not needed. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed