Re: [PATCH net-next] sun/niu: add __maybe_unused attribute to PM functions
From: David Miller
Date: Tue Jul 07 2020 - 15:57:26 EST
From: Vaibhav Gupta <vaibhavgupta40@xxxxxxxxx>
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: use generic power management")
> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Signed-off-by: Vaibhav Gupta <vaibhavgupta40@xxxxxxxxx>
Applied.