Re: [PATCH net-next v2 1/2] net: pass const to msg_data_left()

From: Eric Dumazet
Date: Tue Apr 08 2025 - 10:26:17 EST


On Mon, Apr 7, 2025 at 3:40 PM Breno Leitao <leitao@xxxxxxxxxx> wrote:
>
> The msg_data_left() function doesn't modify the struct msghdr parameter,
> so mark it as const. This allows the function to be used with const
> references, improving type safety and making the API more flexible.
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>