aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-24 18:57:32 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-09-30 16:25:42 +0200
commitae48ab16817e5faf4b2cc5bdd358eae88ea09db4 (patch)
tree77907ae44d1162102d533ce8b063160874146df9
parentmm: include sched.h for task_struct usage (diff)
downloadrhel7-kernel-misery-ae48ab16817e5faf4b2cc5bdd358eae88ea09db4.tar.xz
rhel7-kernel-misery-ae48ab16817e5faf4b2cc5bdd358eae88ea09db4.zip
pgtable: properly ifdef out second definition of pud_write
There's a conflicting definition in include/linux/pgtable.h, which is only enabled for CONFIG_X86_64, so make these two sets of conditions actually exclusive to avoid the clash. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--include/asm-generic/pgtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index 16a4514b4fe..8c9a8d63692 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -640,7 +640,7 @@ static inline int pmd_write(pmd_t pmd)
return 0;
}
#endif /* __HAVE_ARCH_PMD_WRITE */
-#ifndef __HAVE_ARCH_PUD_WRITE
+#if !defined(__HAVE_ARCH_PUD_WRITE) && !defined(CONFIG_X86_64)
static inline int pud_write(pud_t pud)
{
BUG();