Re: [PATCH v2 1/3] mm: convert memory block states (MEM_*) macros to enum

David Hildenbrand <[email protected]> Thu, 30 Oct 2025 12:31:47 +0100
Newsgroups org.kernel.vger.linux-debuggers,org.kvack.linux-mm
Message-ID <[email protected]>
On 29.10.25 20:56, Israel Batista wrote:
> Converting the MEM_* constants from macros to an enum ensures that their
> values will be correctly emitted in the debug symbols, making it easier
> to trace the meaning of each value when debugging with tools such as
> drgn, without the need to hard-code the values.
> 
> Since the values are mutually exclusive and they are not exposed directly to
> userspace, I also dropped the misleading pattern (1<<X) that made it look like
> they were combinable flags.
> 
> Signed-off-by: Israel Batista <[email protected]>
> ---

Acked-by: David Hildenbrand <[email protected]>

-- 
Cheers

David / dhildenb