diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-11-28 09:43:29 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-11-28 14:11:44 +0100 |
commit | adb44a4bfc8a3312d2a13cc09d2b89d5828e7702 (patch) | |
tree | 916805bb0f67214a71935188039f93b49c06f231 /arch | |
parent | 487ef5d4d912f6a32556d8a61cede17870925295 (diff) | |
download | lwn-adb44a4bfc8a3312d2a13cc09d2b89d5828e7702.tar.gz lwn-adb44a4bfc8a3312d2a13cc09d2b89d5828e7702.zip |
s390/mm/hugetlbfs: Add missing includes
Add missing includes to fix this randconfig compile error:
All errors (new ones prefixed by >>):
In file included from mm/pagewalk.c:5:
In file included from include/linux/hugetlb.h:798:
>> arch/s390/include/asm/hugetlb.h:94:31: error: call to undeclared function 'is_pte_marker'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
94 | return huge_pte_none(pte) || is_pte_marker(pte);
| ^
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411281002.IPkRpIcR-lkp@intel.com/
Fixes: 487ef5d4d912 ("s390/mm: Add PTE_MARKER support for hugetlbfs mappings")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/include/asm/hugetlb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/hugetlb.h b/arch/s390/include/asm/hugetlb.h index 0f621c99b216..5bdb35991ecb 100644 --- a/arch/s390/include/asm/hugetlb.h +++ b/arch/s390/include/asm/hugetlb.h @@ -10,6 +10,8 @@ #define _ASM_S390_HUGETLB_H #include <linux/pgtable.h> +#include <linux/swap.h> +#include <linux/swapops.h> #include <asm/page.h> #define hugetlb_free_pgd_range free_pgd_range |