Re: [PATCH net-next v2 1/2] net: pass const to msg_data_left()
From: Kuniyuki Iwashima
Date: Mon Apr 07 2025 - 20:55:58 EST
From: Breno Leitao <leitao@xxxxxxxxxx>
Date: Mon, 07 Apr 2025 06:40:43 -0700
> 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: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>