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

m68k: pgtable: Add missing #include <asm/page.h>

When just including <linux/pgtable.h>:

include/asm-generic/pgtable-nop4d.h:9:18: error: unknown type name ‘pgd_t’
9 | typedef struct { pgd_t pgd; } p4d_t;
| ^~~~~

Make <asm/pgtable.h> self-contained by including <asm/page.h>.

Reported-by: Jani Nikula <jani.nikula@intel.com>
Closes: https://lore.kernel.org/r/878r2uxwha.fsf@intel.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/af9e22b878f59223adb593f5bbd5b61432120010.1709898638.git.jani.nikula@intel.com

authored by

Geert Uytterhoeven and committed by
Jani Nikula
d1815393 6e0fe04f

+2
+2
arch/m68k/include/asm/pgtable.h
··· 2 2 #ifndef __M68K_PGTABLE_H 3 3 #define __M68K_PGTABLE_H 4 4 5 + #include <asm/page.h> 6 + 5 7 #ifdef __uClinux__ 6 8 #include <asm/pgtable_no.h> 7 9 #else