ip_tunnel: Preserve pointer const in ip_tunnel_info_opts
authorGavin Li <gavinl@nvidia.com>
Thu, 16 Mar 2023 07:07:57 +0000 (09:07 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Mar 2023 05:41:16 +0000 (22:41 -0700)
commitbc9d003dc48c381763c3a6309bfc5eecf9962b9c
tree3ebd82ebb5de7c1752a02fc52619db2631ccb13d
parent58de53c1025836529af9e22e96375d0874e2baca
ip_tunnel: Preserve pointer const in ip_tunnel_info_opts

Change ip_tunnel_info_opts( ) from static function to macro to cast return
value and preserve the const-ness of the pointer.

Signed-off-by: Gavin Li <gavinl@nvidia.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ip_tunnels.h