Search Linux Wireless

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

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

 



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@xxxxxxxxx>
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@xxxxxxxxx>
---
 include/linux/compat-2.6.h |    1 +
 1 file changed, 1 insertion(+)

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>
--
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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux