From patchwork Wed Apr 10 09:20:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Krasnikov X-Patchwork-Id: 2419991 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DD87DDF2E5 for ; Wed, 10 Apr 2013 09:20:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752655Ab3DJJUi (ORCPT ); Wed, 10 Apr 2013 05:20:38 -0400 Received: from mail-ie0-f179.google.com ([209.85.223.179]:53957 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751746Ab3DJJUh (ORCPT ); Wed, 10 Apr 2013 05:20:37 -0400 Received: by mail-ie0-f179.google.com with SMTP id k11so250764iea.10 for ; Wed, 10 Apr 2013 02:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=EZZOPx5ZnVR0ec8ScpbikercHjsqn3Sncl/7OIntSIM=; b=QZMLwNrEOvupnow2g3Mril4/7yoHdOdBG/K/TB2++a6fFf5cjnbE9n3rSaYAPyWaZ2 LoVFLqtPsUzpnbSmrA2rAhcPxIsxD+iR40hdsmeVkEeJuFNtF2KFDz2Dcslte3Ls0aFk mVKJlSHsMTwXbSUudbyZwmDyXEq7j/Y2meS9GEl3jf5fyLAmu5Gn+hT++mx/oDooiIGo iU6AKN6tn/8IfIdM7Jl6hLtH5MQzEUv/n5ARaRmwSuO3k+272EJ6HOJH5ija5+7BJyGS xk9wAYdFus5T1juGRo+vZ6OEDtY0JhAQ8S3RJy7lGGuMAFrm14MMsIWqAUMHz4oX317P S5iA== MIME-Version: 1.0 X-Received: by 10.50.141.201 with SMTP id rq9mr971149igb.33.1365585637356; Wed, 10 Apr 2013 02:20:37 -0700 (PDT) Received: by 10.64.141.40 with HTTP; Wed, 10 Apr 2013 02:20:37 -0700 (PDT) Date: Wed, 10 Apr 2013 11:20:37 +0200 Message-ID: Subject: include/linux/device.h:715:38: error: 'THIS_MODULE' undeclared From: Eugene Krasnikov To: backports@vger.kernel.org, linux-wireless Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 Date: Tue, 9 Apr 2013 18:28:38 +0200 Subject: [PATCH] Use export.h from CM location Signed-off-by: Eugene Krasnikov --- 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 --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 #include #include