Skip to contentSkip to conversation

powerpc: fix building hvc_opal.c

PATCH New Michael Neuling 1 participant 2 messages Nov 7, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: fix building hvc_opal.c

Fix building following build error:
drivers/tty/hvc/hvc_opal.c:244:12: error: 'THIS_MODULE' undeclared here (not in a function)

drivers/tty/hvc/hvc_opal.c +1 -0
index 7b38512..cb3938f 100644
@@ -28,6 +28,7 @@
 #include <linux/console.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/module.h>
 
 #include <asm/hvconsole.h>
 #include <asm/prom.h>
#1 lore raw

PATCH 1/1 powerpc: fix building hvc_opal.c

Fix building following build error:
drivers/tty/hvc/hvc_opal.c:244:12: error: 'THIS_MODULE' undeclared here (not in a function)

--
Actually, this is the right fix.

sfr says this was a merge conflict between the module.h split up and the powerpc tree, which were both merged by Linus today.

drivers/tty/hvc/hvc_opal.c +1 -0
index 7b38512..ced26c8 100644
@@ -28,6 +28,7 @@
 #include <linux/console.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/export.h>
 
 #include <asm/hvconsole.h>
 #include <asm/prom.h>