* [PATCH] x86, mm: fix NOHIGHMEM && X86_PAE build config for native_pud_clear()
@ 2017-03-06 22:18 Dave Jiang
0 siblings, 0 replies; only message in thread
From: Dave Jiang @ 2017-03-06 22:18 UTC (permalink / raw)
To: akpm
Cc: dave.hansen, mawilcox, linux-nvdimm, linux-mm, jack,
dan.j.williams, ross.zwisler, kirill.shutemov
Looks like a 32bit x86 build failure case where X86_PAE and NOHIMEM
are on. This was reported by kbuild test bot.
In file included from include/linux/mm.h:68:0,
from include/linux/highmem.h:7,
from include/linux/bio.h:21,
from include/linux/writeback.h:205,
from include/linux/memcontrol.h:30,
from include/linux/swap.h:8,
from include/linux/suspend.h:4,
from arch/x86/kernel/asm-offsets.c:12:
arch/x86/include/asm/pgtable.h: In function 'native_local_pudp_get_and_clear':
>> arch/x86/include/asm/pgtable.h:888:2: error: implicit declaration of function 'native_pud_clear' [-Werror=implicit-function-declaration]
native_pud_clear(pudp);
^~~~~~~~~~~~~~~~
Fixes: a00cc7d9dd93d ("mm, x86: add support for PUD-sized transparent
hugepages")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
arch/x86/include/asm/pgtable-3level.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/include/asm/pgtable-3level.h b/arch/x86/include/asm/pgtable-3level.h
index 72277b1..d337738 100644
--- a/arch/x86/include/asm/pgtable-3level.h
+++ b/arch/x86/include/asm/pgtable-3level.h
@@ -121,8 +121,9 @@ static inline void native_pmd_clear(pmd_t *pmd)
*(tmp + 1) = 0;
}
-#if !defined(CONFIG_SMP) || (defined(CONFIG_HIGHMEM64G) && \
- defined(CONFIG_PARAVIRT))
+#if !defined(CONFIG_SMP) || \
+ (defined(CONFIG_HIGHMEM64G) && defined(CONFIG_PARAVIRT)) || \
+ (defined(CONFIG_NOHIGHMEM) && defined(CONFIG_X86_PAE))
static inline void native_pud_clear(pud_t *pudp)
{
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-06 22:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-06 22:18 [PATCH] x86, mm: fix NOHIGHMEM && X86_PAE build config for native_pud_clear() Dave Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).