Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: vm_event_item: explicit #include for THREAD_SIZE

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.

Link: https://lkml.kernel.org/r/20250909201419.827638-1-briannorris@chromium.org
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Brian Norris and committed by
Andrew Morton
032c3112 7ffc923e

+2
+2
include/linux/vm_event_item.h
··· 2 2 #ifndef VM_EVENT_ITEM_H_INCLUDED 3 3 #define VM_EVENT_ITEM_H_INCLUDED 4 4 5 + #include <linux/thread_info.h> 6 + 5 7 #ifdef CONFIG_ZONE_DMA 6 8 #define DMA_ZONE(xx) xx##_DMA, 7 9 #else