]> 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)
commitc23a8208f9159917aa9be34a33c32e1498b9c7e1
tree73e615519fb79cad4913a5846829ec1848b91f80
parent9c0b438b31153ad818143be67edf145415ab6a32
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