[PATCH RESEND] [ARM] msm: compilation fix for arch/arm/mach-msm/vreg.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From: JJ Ding <dgdunix@xxxxxxxxx>

Include linux/export.h to fix the following when CONFIG_DEBUG_FS=y.

  CC      arch/arm/mach-msm/vreg.o
arch/arm/mach-msm/vreg.c:190: error: 'THIS_MODULE' undeclared here (not in a function)
make[2]: *** [arch/arm/mach-msm/vreg.o] Error 1
make[1]: *** [arch/arm/mach-msm] Error 2
make: *** [sub-make] Error 2

Signed-off-by: JJ Ding <dgdunix@xxxxxxxxx>
Hi all,

Sorry for the wrong sender field in last mail.
Here is the correct version.


 arch/arm/mach-msm/vreg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-msm/vreg.c b/arch/arm/mach-msm/vreg.c
index a9103bc..e87792b 100644
--- a/arch/arm/mach-msm/vreg.c
+++ b/arch/arm/mach-msm/vreg.c
@@ -20,6 +20,7 @@
 #include <linux/init.h>
 #include <linux/debugfs.h>
 #include <linux/string.h>
+#include <linux/export.h>
 #include <mach/vreg.h>
 #include "proc_comm.h"

To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

Add to Google