[Linux-kernel-mentees] [PATCH net-next] sun/niu: add __maybe_unused attribute to PM functions
davem at davemloft.net
Tue Jul 7 19:57:22 UTC 2020
From: Vaibhav Gupta <vaibhavgupta40 at gmail.com>
Date: Tue, 7 Jul 2020 13:11:22 +0530
> The upgraded .suspend() and .resume() throw
> "defined but not used [-Wunused-function]" warning for certain
> Mark them with "__maybe_unused" attribute.
> Compile-tested only.
> Fixes: b0db0cc2f695 ("sun/niu: use generic power management")
> Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
> Signed-off-by: Vaibhav Gupta <vaibhavgupta40 at gmail.com>
More information about the Linux-kernel-mentees