]> git.baikalelectronics.ru Git - kernel.git/commit
net: constify some inline functions in sock.h
authorPeter Lafreniere <pjlafren@mtu.edu>
Mon, 6 Jun 2022 11:34:58 +0000 (07:34 -0400)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jun 2022 17:12:43 +0000 (10:12 -0700)
commit4b8d7fff6808a0cd41d22e8497593c4360fb0fa3
tree611b16f3dfbd1de06607d89a3477c9dd81ce6059
parente143692fe7ff8b4296a047f64cfa04e14c866439
net: constify some inline functions in sock.h

Despite these inline functions having full visibility to the compiler
at compile time, they still strip const from passed pointers.
This change allows for functions in various network drivers to be marked as
const that could not be marked const before.

Signed-off-by: Peter Lafreniere <pjlafren@mtu.edu>
Link: https://lore.kernel.org/r/20220606113458.35953-1-pjlafren@mtu.edu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h