]> Git Repo - linux.git/commit
parisc: Drop PMD_SHIFT from calculation in pgtable.h
authorHelge Deller <[email protected]>
Wed, 14 Dec 2022 21:17:57 +0000 (22:17 +0100)
committerHelge Deller <[email protected]>
Sat, 17 Dec 2022 22:19:39 +0000 (23:19 +0100)
commitfe94cb1a614d2df2764d49ac959d8b7e4cb98e15
treec73b677eb530470d7db05edbff2c246b6e4f47b9
parent71bdea6f798b425bc0003780b13e3fdecb16a010
parisc: Drop PMD_SHIFT from calculation in pgtable.h

PMD_SHIFT isn't defined if CONFIG_PGTABLE_LEVELS == 3, and as
such the kernel test robot found this warning:

 In file included from include/linux/pgtable.h:6,
                  from arch/parisc/kernel/head.S:23:
 arch/parisc/include/asm/pgtable.h:169:32: warning: "PMD_SHIFT" is not defined, evaluates to 0 [-Wundef]
     169 | #if (KERNEL_INITIAL_ORDER) >= (PMD_SHIFT)

Avoid the warning by using PLD_SHIFT and BITS_PER_PTE.

Signed-off-by: Helge Deller <[email protected]>
Reported-by: kernel test robot <[email protected]>
Cc: <[email protected]> # 6.0+
arch/parisc/include/asm/pgtable.h
This page took 0.052856 seconds and 4 git commands to generate.