Skip to content

Commit adb44a4

Browse files
committed
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 487ef5d ("s390/mm: Add PTE_MARKER support for hugetlbfs mappings") Signed-off-by: Heiko Carstens <[email protected]>
1 parent 487ef5d commit adb44a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/s390/include/asm/hugetlb.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#define _ASM_S390_HUGETLB_H
1111

1212
#include <linux/pgtable.h>
13+
#include <linux/swap.h>
14+
#include <linux/swapops.h>
1315
#include <asm/page.h>
1416

1517
#define hugetlb_free_pgd_range free_pgd_range

0 commit comments

Comments
 (0)