1
0
Fork 0
alistair23-linux/drivers/net/ethernet/socionext
Kunihiko Hayashi 82d5d6a638 net: ethernet: ave: Avoid lockdep warning
When building with PROVE_LOCKING=y, lockdep shows the following
dump message.

    INFO: trying to register non-static key.
    the code is fine but needs lockdep annotation.
    turning off the locking correctness validator.
     ...

Calling device_set_wakeup_enable() directly occurs this issue,
and it isn't necessary for initialization, so this patch creates
internal function __ave_ethtool_set_wol() and replaces with this
in ave_init() and ave_resume().

Fixes: 7200f2e3c9 ("net: ethernet: ave: Set initial wol state to disabled")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-01-16 13:28:39 +01:00
..
Kconfig net: netsec: Use page_pool API 2019-07-01 19:27:08 -07:00
Makefile
netsec.c net: netsec: Correct dma sync for XDP_TX frames 2019-10-17 15:35:56 -04:00
sni_ave.c net: ethernet: ave: Avoid lockdep warning 2020-01-16 13:28:39 +01:00