On Sun, Apr 17, 2016 at 2:09 AM, Arnd Bergmann <a...@arndb.de> wrote: > The newly added runtime PM support for the cadence spi driver > causes harmless warnings when PM is disabled: > > drivers/spi/spi-cadence.c:681:12: warning: 'cnds_runtime_suspend' defined but > not used > drivers/spi/spi-cadence.c:652:12: warning: 'cnds_runtime_resume' defined but > not used > > This adds __maybe_unused annotations to the respective functions > to shut up the warnings, while leaving the code in place for > compile testing and avoiding ugly #ifdefs.
Thanks for the patch. Feel free to add my ack. Acked-by: Shubhrajyoti Datta <shubh...@xilinx.com> > > Signed-off-by: Arnd Bergmann <a...@arndb.de> > Fixes: d36ccd9f7ea4 ("spi: cadence: Runtime pm adaptation") > ---