m68k: Export mach_random_get_entropy to modules
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 10 Jul 2014 16:03:17 +0000 (18:03 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 11 Jul 2014 08:37:53 +0000 (10:37 +0200)
When a module calls random_get_entropy():

    ERROR: "mach_random_get_entropy" [crypto/drbg.ko] undefined!
    make[1]: *** [__modpost] Error 1

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/time.c

index 958f1ad..3857737 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/errno.h>
+#include <linux/export.h>
 #include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
@@ -30,6 +31,7 @@
 
 
 unsigned long (*mach_random_get_entropy)(void);
+EXPORT_SYMBOL_GPL(mach_random_get_entropy);
 
 
 /*