Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1528439

Re: [PATCH] usb: musb: mark PM functions as __maybe_unused

From Tony Lindgren <tony@atomide.com>
Newsgroups linux.kernel
Subject Re: [PATCH] usb: musb: mark PM functions as __maybe_unused
Date 2016-11-23 15:30 +0100
Message-ID <sGGIF-62A-1@gated-at.bofh.it> (permalink)
References <sGkoN-8oh-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Arnd Bergmann <arnd@arndb.de> [161122 06:30]:
> Building without CONFIG_PM causes a harmless warning:
> 
> drivers/usb/musb/musb_core.c:2041:12: error: ‘musb_run_resume_work’ defined but not used [-Werror=unused-function]
> 
> Removing the #ifdef around the PM code and instead marking the suspend/resume
> functions as __maybe_unused will do the right thing without warning.

OK works for me:

Acked-by: Tony Lindgren <tony@atomide.com>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] usb: musb: mark PM functions as __maybe_unused Arnd Bergmann <arnd@arndb.de> - 2016-11-22 15:40 +0100
  Re: [PATCH] usb: musb: mark PM functions as __maybe_unused Tony Lindgren <tony@atomide.com> - 2016-11-23 15:30 +0100

csiph-web