x86/mm: Remove the unused mk_kernel_pgd() #define
authorIngo Molnar <mingo@kernel.org>
Fri, 24 Jul 2020 11:44:18 +0000 (13:44 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 25 Jul 2020 10:00:57 +0000 (12:00 +0200)
commit4b8e0328e56e177663645a96ea4c5c0401ecd78f
tree28aeb375d87b5e80e28ed03602eb32132b425b78
parent161449bad5053d66f2310744ba8498158ab12c89
x86/mm: Remove the unused mk_kernel_pgd() #define

AFAICS the last uses of directly 'making' kernel PGDs was removed 7 years ago:

  8b78c21d72d9: ("x86, 64bit, mm: hibernate use generic mapping_init")

Where the explicit PGD walking loop was replaced with kernel_ident_mapping_init()
calls. This was then (unnecessarily) carried over through the 5-level paging conversion.

Also clean up the 'level' comments a bit, to convey the original, meanwhile somewhat
bit-rotten notion, that these are empty comment blocks with no methods to handle any
of the levels except the PTE level.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200724114418.629021-4-mingo@kernel.org
arch/x86/include/asm/pgtable_64.h