Re: [PATCH net-next v7 4/5] ip_tunnel: Preserve pointer const in ip_tunnel_info_opts

From: Simon Horman
Date: Tue Mar 14 2023 - 11:44:23 EST


On Mon, Mar 13, 2023 at 07:57:23PM -0700, Eric Dumazet wrote:
> 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>

Thanks Gavin,

this addresses my concerns.

Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>