OSDN Git Service

sun/niu: add __maybe_unused attribute to PM functions
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Tue, 7 Jul 2020 07:41:22 +0000 (13:11 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jul 2020 19:56:40 +0000 (12:56 -0700)
commit86fc3f7074d029ce23271d492a1c8ffee3067244
tree559d4ad10fe46e50a444dcb155f31d00361940b1
parentc8658e584126e34b2aec8b5cfa59aed0df2b5752
sun/niu: add __maybe_unused attribute to PM functions

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@canb.auug.org.au>
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/niu.c