git: fe431f8c0822 - stable/14 - LinuxKPI: Add header polution to compile linux/numa.h

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Thu, 01 Aug 2024 22:27:50 UTC
The branch stable/14 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=fe431f8c08225715b97250040bb263603c1861e9

commit fe431f8c08225715b97250040bb263603c1861e9
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-06-26 20:44:56 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-08-01 21:09:41 +0000

    LinuxKPI: Add header polution to compile linux/numa.h
    
    Sponsored by:   Serenity CyberSecurity, LLC
    MFC after:      1 week
    Reviewed by:    manu, bz, emaste
    Differential Revision:  https://reviews.freebsd.org/D45612
    
    (cherry picked from commit d21316ff22b1468304b6db9c336f66a09c4f7be8)
---
 sys/compat/linuxkpi/common/include/linux/highmem.h | 1 +
 sys/compat/linuxkpi/common/include/linux/mm.h      | 1 +
 sys/compat/linuxkpi/common/include/linux/mmzone.h  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/highmem.h b/sys/compat/linuxkpi/common/include/linux/highmem.h
index 252d16b2ea70..b8874481f9c6 100644
--- a/sys/compat/linuxkpi/common/include/linux/highmem.h
+++ b/sys/compat/linuxkpi/common/include/linux/highmem.h
@@ -43,6 +43,7 @@
 #include <vm/vm_page.h>
 #include <vm/pmap.h>
 
+#include <linux/mm.h>
 #include <linux/page.h>
 
 #define	PageHighMem(p)		(0)
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
index 41af4be4c015..e2bda799dc77 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -35,6 +35,7 @@
 #include <linux/gfp.h>
 #include <linux/kernel.h>
 #include <linux/mm_types.h>
+#include <linux/mmzone.h>
 #include <linux/pfn.h>
 #include <linux/list.h>
 #include <linux/mmap_lock.h>
diff --git a/sys/compat/linuxkpi/common/include/linux/mmzone.h b/sys/compat/linuxkpi/common/include/linux/mmzone.h
index 49cc218c6fce..9fd481e18ee4 100644
--- a/sys/compat/linuxkpi/common/include/linux/mmzone.h
+++ b/sys/compat/linuxkpi/common/include/linux/mmzone.h
@@ -4,6 +4,7 @@
 #define _LINUX_MMZONE_H
 
 #include <linux/mm_types.h>
+#include <linux/numa.h>
 #include <linux/page-flags.h>
 
 #define MAX_ORDER	11