From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: Derek Nielson <dereknielson@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Best place to ask this question: error with compiler.h when switching from 2.6.32 to 2.6.36
Date: Mon, 22 Nov 2010 18:35:54 +0100 [thread overview]
Message-ID: <20101122183554.764aa480@neptune.home> (raw)
In-Reply-To: <AANLkTikt2k8jC4ykYqYG_hQPAZt0-GXAvD1DPogu+AB0@mail.gmail.com>
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@gmail.com> 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?
next prev parent reply other threads:[~2010-11-22 17:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-22 16:55 Derek Nielson
2010-11-22 17:35 ` Bruno Prémont [this message]
2010-11-22 22:37 ` Derek Nielson
2010-11-22 18:12 ` Valdis.Kletnieks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101122183554.764aa480@neptune.home \
--to=bonbons@linux-vserver.org \
--cc=dereknielson@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®