[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ed2fd382-7b56-4007-8915-88e91cce11f5@lucifer.local>
Date: Thu, 11 Sep 2025 13:43:23 +0100
From: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
To: Brian Norris <briannorris@...omium.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...hat.com>, linux-kernel@...r.kernel.org,
Michal Hocko <mhocko@...e.com>, Mike Rapoport <rppt@...nel.org>,
Suren Baghdasaryan <surenb@...gle.com>,
Vlastimil Babka <vbabka@...e.cz>, linux-mm@...ck.org,
"Liam R. Howlett" <Liam.Howlett@...cle.com>
Subject: Re: [PATCH] mm: vm_event_item: Explicit #include for THREAD_SIZE
On Tue, Sep 09, 2025 at 01:13:57PM -0700, Brian Norris wrote:
> This header uses THREAD_SIZE, which is provided by the thread_info.h
> header but is not included in this header. Depending on the #include
> ordering in other files, this can produce preprocessor errors.
>
> Signed-off-by: Brian Norris <briannorris@...omium.org>
This LGTM, so:
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
> ---
>
> include/linux/vm_event_item.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h
> index 9e15a088ba38..92f80b4d69a6 100644
> --- a/include/linux/vm_event_item.h
> +++ b/include/linux/vm_event_item.h
> @@ -2,6 +2,8 @@
> #ifndef VM_EVENT_ITEM_H_INCLUDED
> #define VM_EVENT_ITEM_H_INCLUDED
>
> +#include <linux/thread_info.h>
> +
> #ifdef CONFIG_ZONE_DMA
> #define DMA_ZONE(xx) xx##_DMA,
> #else
> --
> 2.51.0.384.g4c02a37b29-goog
>
Powered by blists - more mailing lists