]> 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)
commite159f2ed07a3ef4a5234fb57993ae38c0148376f
tree611b16f3dfbd1de06607d89a3477c9dd81ce6059
parent24848a0eb1c10ec70d0c1b21c67e5ca469b0eb3a
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