powerpc/pseries: Fix SMP=n build of rng.c

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 22 17:59:02 EST 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=148924f7a282b3acb1f8868ae03c3f76be301d8d
Commit:     148924f7a282b3acb1f8868ae03c3f76be301d8d
Parent:     3eb906c6b6c123513718e7742a96a4189f900382
Author:     Michael Ellerman <mpe at ellerman.id.au>
AuthorDate: Wed Nov 20 11:05:02 2013 +1100
Committer:  Benjamin Herrenschmidt <benh at kernel.crashing.org>
CommitDate: Thu Nov 21 10:33:45 2013 +1100

    powerpc/pseries: Fix SMP=n build of rng.c
    
    In commit a489043 "Implement arch_get_random_long() based on H_RANDOM" I
    broke the SMP=n build. We were getting plpar_wrappers.h via spinlock.h
    which breaks when SMP=n.
    
    Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
    Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 arch/powerpc/platforms/pseries/rng.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/platforms/pseries/rng.c b/arch/powerpc/platforms/pseries/rng.c
index a702f1c..72a1027 100644
--- a/arch/powerpc/platforms/pseries/rng.c
+++ b/arch/powerpc/platforms/pseries/rng.c
@@ -13,6 +13,7 @@
 #include <linux/of.h>
 #include <asm/archrandom.h>
 #include <asm/machdep.h>
+#include <asm/plpar_wrappers.h>
 
 
 static int pseries_get_random_long(unsigned long *v)



More information about the linux-mtd-cvs mailing list