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)
commita84a434baf9427a1c49782fb1f0973d1308016df
tree611b16f3dfbd1de06607d89a3477c9dd81ce6059
parent17e9157c4ed00a90fcf34d9caffee90d194ebfa3
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