Re: [PATCH net-next v7 4/5] ip_tunnel: Preserve pointer const in ip_tunnel_info_opts
From: Eric Dumazet
Date: Mon Mar 13 2023 - 22:57:57 EST
On Mon, Mar 13, 2023 at 12:51 AM Gavin Li <gavinl@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxx>
> ---
> include/net/ip_tunnels.h | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>