# Re: \[PATCH 2/3\] mm: update core kernel code to use vm\_flags\_t consistently

- From: David Hildenbrand \<hidden\>
- Date: 2025-06-23 14:17:54 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2025/06/315537
- Thread: https://ratatoskr.run/linuxppc-dev/2025/06/315057/t.md

```text
On 18.06.25 21:42, Lorenzo Stoakes wrote:
> The core kernel code is currently very inconsistent in its use of
> vm_flags_t vs. unsigned long. This prevents us from changing the type of
> vm_flags_t in the future and is simply not correct, so correct this.
>
> While this results in rather a lot of churn, it is a critical pre-requisite
> for a future planned change to VMA flag type.
>
> Additionally, update VMA userland tests to account for the changes.
>
> To make review easier and to break things into smaller parts, driver and
> architecture-specific changes is left for a subsequent commit.
>
> The code has been adjusted to cascade the changes across all calling code
> as far as is needed.
>
> We will adjust architecture-specific and driver code in a subsequent patch.
>
> Overall, this patch does not introduce any functional change.
>
> Signed-off-by: Lorenzo Stoakes <redacted>
> ---

Probably some cases might sneak in in the meantime :)

Acked-by: David Hildenbrand <redacted>

-- 
Cheers,

David / dhildenb


```
