]> git.baikalelectronics.ru Git - kernel.git/commit
net: linkmode: make linkmode_test_bit() take const pointer
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 15 Feb 2020 23:57:36 +0000 (23:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:39:44 +0000 (19:39 -0800)
commit5ff47e55f2654c2e0a51f06ec09946418f4c2716
tree73e615519fb79cad4913a5846829ec1848b91f80
parent8d61a68ae78a97956c6f06b999010804f0823208
net: linkmode: make linkmode_test_bit() take const pointer

linkmode_test_bit() does not modify the address; test_bit() is also
declared const volatile for the same reason. There's no need for
linkmode_test_bit() to be any different, and allows implementation of
helpers that take a const linkmode pointer.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/linkmode.h