# Re: \[PATCH net-next v2 1/2\] net: pass const to msg\_data\_left()

- From: Kuniyuki Iwashima \<hidden\>
- Date: 2025-04-08 00:54:27 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2025/04/3001978
- Thread: https://ratatoskr.run/linux-trace-kernel/2025/04/3000606/t.md

```text
From: Breno Leitao <leitao@debian.org>
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@debian.org>

Reviewed-by: Kuniyuki Iwashima <redacted>
```
