mirror of
https://github.com/torvalds/linux.git
synced 2025-11-10 05:30:50 +02:00
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
17 lines
292 B
C
17 lines
292 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __M68K_PGTABLE_H
|
|
#define __M68K_PGTABLE_H
|
|
|
|
#include <asm/page.h>
|
|
|
|
#ifdef __uClinux__
|
|
#include <asm/pgtable_no.h>
|
|
#else
|
|
#include <asm/pgtable_mm.h>
|
|
#endif
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern void paging_init(void);
|
|
#endif
|
|
|
|
#endif /* __M68K_PGTABLE_H */
|