Re: Best place to ask this question: error with compiler.h whenswitching from 2.6.32 to 2.6.36

From: Bruno PrÃmont
Date: Mon Nov 22 2010 - 12:36:15 EST


Hi,

You should post the corresponding code in my_module.c around line 24
(preferably a link to the whole code of your external module).

The error alone won't help too much as probably it's happening more or
less deep inside macros, thus the whole parameters to the macro are
required to understand.

Bruno


On Mon, 22 November 2010 Derek Nielson <dereknielson@xxxxxxxxx> wrote:
> Last week I posted on here about a problem I am having switching from
> kernel 2.6.32 to 2.6.36 and compiling modules against the kernel. ÂI
> was not able to get a response and I'm thinking it's because this is
> the wrong place to post this question. ÂWhere is the best place to ask
> this kind of question? ÂIs there another mailing list that I should be
> posting to?
>
> Thanks
>
> Previous Post:
>
> I am switching from Kernel 2.6.32 to Kernel 2.6.36. ÂThe kernel builds
> fine but when I compile a module (that worked with the previously
> kernel) against the new kernel I am getting an error that I don't
> understand.
>
> Here is the error:
>
> In file included from include/linux/string.h:10,
> ÂÂ Â Â Â Â Â Â Â from
> /mnt/local/home/linux-omap-2.6/arch/arm/include/asm/uaccess.h:14,
> ÂÂ Â Â Â Â Â Â Â from /home/my_module/my_module.c:24:
> include/linux/compiler.h:62: error: expected â=â, â,â, â;â, âasmâ or
> â__attribute__â before âstructâ
> make[2]: *** [/home/my_module/my_module.o] Error 1
> make[1]: *** [_module_/home/my_module] Error 2
> make[1]: Leaving directory `/mnt/local/home/linux-omap-2.6'
> make: *** [release] Error 2
>
> I found this threadÂhttp://lkml.org/lkml/2007/10/17/213Âand tried
> following their solution but it didn't fix the problem.
>
> Does anyone know how to fix this error?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/