]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-x86-add-config_arch_has_nonleaf_pmd_young-fix
authorYu Zhao <yuzhao@google.com>
Thu, 14 Apr 2022 19:16:55 +0000 (12:16 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 14 Apr 2022 21:49:53 +0000 (17:49 -0400)
fix Kconfig warnings

Link: https://lkml.kernel.org/r/YlZrmTd0JGO7/g8a@google.com
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/Kconfig
arch/x86/Kconfig

index c626bed3553d9d165273a80c6215e00708c3bbb1..1f0f39262d84b7a918bf1cbd7723cf64deabef23 100644 (file)
@@ -1380,7 +1380,6 @@ config HAVE_ARCH_NODE_DEV_GROUP
 
 config ARCH_HAS_NONLEAF_PMD_YOUNG
        bool
-       depends on PGTABLE_LEVELS > 2
        help
          Architectures that select this option are capable of setting the
          accessed bit in non-leaf PMD entries when using them as part of linear
index 86c75bd840870abc9827edef7efe7d86be2cd94d..d336b173481117b1df2241f559670ecafb6f6ba3 100644 (file)
@@ -85,7 +85,7 @@ config X86
        select ARCH_HAS_PMEM_API                if X86_64
        select ARCH_HAS_PTE_DEVMAP              if X86_64
        select ARCH_HAS_PTE_SPECIAL
-       select ARCH_HAS_NONLEAF_PMD_YOUNG
+       select ARCH_HAS_NONLEAF_PMD_YOUNG       if PGTABLE_LEVELS > 2
        select ARCH_HAS_UACCESS_FLUSHCACHE      if X86_64
        select ARCH_HAS_COPY_MC                 if X86_64
        select ARCH_HAS_SET_MEMORY