diff options
| author | Ingo Molnar <[email protected]> | 2025-03-06 22:00:16 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-07 23:09:09 +0000 |
| commit | 6914f7e2e25fac9d1d2b62c208eaa5f2bf810fe9 (patch) | |
| tree | 0415b08066d349a5f8419ed25a949121eaf5a3b5 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
| parent | virt: sev-guest: Move SNP Guest Request data pages handling under snp_cmd_mutex (diff) | |
| download | kernel-6914f7e2e25fac9d1d2b62c208eaa5f2bf810fe9.tar.gz kernel-6914f7e2e25fac9d1d2b62c208eaa5f2bf810fe9.zip | |
x86/mm: Define PTRS_PER_PMD for assembly code too
Andy reported the following build warning from head_32.S:
In file included from arch/x86/kernel/head_32.S:29:
arch/x86/include/asm/pgtable_32.h:59:5: error: "PTRS_PER_PMD" is not defined, evaluates to 0 [-Werror=undef]
59 | #if PTRS_PER_PMD > 1
The reason is that on 2-level i386 paging the folded in PMD's
PTRS_PER_PMD constant is not defined in assembly headers,
only in generic MM C headers.
Instead of trying to fish out the definition from the generic
headers, just define it - it even has a comment for it already...
Reported-by: Andy Shevchenko <[email protected]>
Tested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions
