linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm,x86: fix SMP x86 32bit build for native_pud_clear()
@ 2017-02-15 20:31 Dave Jiang
  2017-02-16 15:42 ` Dave Hansen
  2017-02-27 18:31 ` Laura Abbott
  0 siblings, 2 replies; 4+ messages in thread
From: Dave Jiang @ 2017-02-15 20:31 UTC (permalink / raw)
  To: akpm
  Cc: keescook, mawilcox, linux-nvdimm, dave.hansen, linux-xfs,
	linux-mm, kirill.shutemov, jack, dan.j.williams, linux-ext4,
	ross.zwisler, vbabka, alexander.kapshuk

The fix introduced by e4decc90 to fix the UP case for 32bit x86, however
that broke the SMP case that was working previously. Add ifdef so the dummy
function only show up for 32bit UP case only.

Fix: e4decc90 mm,x86: native_pud_clear missing on i386 build

Reported-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 arch/x86/include/asm/pgtable-3level.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/include/asm/pgtable-3level.h b/arch/x86/include/asm/pgtable-3level.h
index 50d35e3..8f50fb3 100644
--- a/arch/x86/include/asm/pgtable-3level.h
+++ b/arch/x86/include/asm/pgtable-3level.h
@@ -121,9 +121,11 @@ static inline void native_pmd_clear(pmd_t *pmd)
 	*(tmp + 1) = 0;
 }
 
+#ifndef CONFIG_SMP
 static inline void native_pud_clear(pud_t *pudp)
 {
 }
+#endif
 
 static inline void pud_clear(pud_t *pudp)
 {


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-27 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-15 20:31 [PATCH] mm,x86: fix SMP x86 32bit build for native_pud_clear() Dave Jiang
2017-02-16 15:42 ` Dave Hansen
2017-02-16 16:27   ` Dave Jiang
2017-02-27 18:31 ` Laura Abbott

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).