]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
s390/mm/hugetlbfs: Add missing includes
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 28 Nov 2024 08:43:29 +0000 (09:43 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 28 Nov 2024 13:11:44 +0000 (14:11 +0100)
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>
arch/s390/include/asm/hugetlb.h

index 0f621c99b21664b8a771816709b45bba1a6aaa51..5bdb35991ecb02d6e500c934c634e87da8955533 100644 (file)
@@ -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