]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ave: Avoid lockdep warning
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Wed, 15 Jan 2020 04:02:42 +0000 (13:02 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jan 2020 12:28:39 +0000 (13:28 +0100)
commitdcb6ecf5dbeeef1868a854d808bc05f4d7f7d3df
tree4232d332b0de2bbf2655af3d7ab6a431fc867621
parentb12d8fe1fff3aa3738d5eb4837af241b54bef46f
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: 630ed0e25810 ("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>
drivers/net/ethernet/socionext/sni_ave.c