diff mbox

include/linux/device.h:715:38: error: 'THIS_MODULE' undeclared

Message ID CAFSJ42ZZH7Y+MPUURG_hQRuwhv8UKkF5sQQebsTjhH0uT07rjA@mail.gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Eugene Krasnikov April 10, 2013, 9:20 a.m. UTC
Hi All,

I have tried to build latest compat-drivers for android/cyanogenmod
kernel version 3.0.60 but it fails with the following error:

/cyanogenmod/kernel/sony/msm8x60/include/linux/device.h: In function
'root_device_register':
/cyanogenmod/kernel/sony/msm8x60/include/linux/device.h:715:38: error:
'THIS_MODULE' undeclared (first use in this function)

Command line that is used to build compat-drivers is:

make KLIB=/cyanogenmod/out/target/product/mint/obj/KERNEL_OBJ
KLIB_BUILD=/cyanogenmod/out/target/product/mint/obj/KERNEL_OBJ
ARCH=arm CROSS_COMPILE=/cyanogenmod/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-

Did anybody meet such an error?
Patch bellow was used as a workaround to this error, but i would like
to find a proper solution.

From c059e8b803550c7b76cc102d6c1fb1d8a0fa6fa9 Mon Sep 17 00:00:00 2001
From: Eugene Krasnikov <k.eugene.e@gmail.com>
Date: Tue, 9 Apr 2013 18:28:38 +0200
Subject: [PATCH] Use export.h from CM location

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
---
 include/linux/compat-2.6.h |    1 +
 1 file changed, 1 insertion(+)

--
1.7.10


--
Best regards,
Eugene
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h
index 1e9effb..47f7434 100644
--- a/include/linux/compat-2.6.h
+++ b/include/linux/compat-2.6.h
@@ -43,6 +43,7 @@  void backport_dependency_symbol(void);
  * Each compat file represents compatibility code for new kernel
  * code introduced for *that* kernel revision.
  */
+#include </cyanogenmod/kernel/sony/msm8x60/include/linux/export.h>

 #include <linux/compat-2.6.22.h>
 #include <linux/compat-2.6.23.h>