Re: [PATCH net-next] sun/niu: add __maybe_unused attribute to PM functions

2020-07-07 Thread David Miller
From: Vaibhav Gupta Date: Tue, 7 Jul 2020 13:11:22 +0530 > The upgraded .suspend() and .resume() throw > "defined but not used [-Wunused-function]" warning for certain > configurations. > > Mark them with "__maybe_unused" attribute. > > Compile-tested only. > > Fixes: b0db0cc2f695 ("sun/niu:

[PATCH net-next] sun/niu: add __maybe_unused attribute to PM functions

2020-07-07 Thread Vaibhav Gupta
The upgraded .suspend() and .resume() throw "defined but not used [-Wunused-function]" warning for certain configurations. Mark them with "__maybe_unused" attribute. Compile-tested only. Fixes: b0db0cc2f695 ("sun/niu: use generic power management") Reported-by: Stephen Rothwell Signed-off-by: V