From: Paul Smith <paul@mad-scientist.us>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: 2.6.25: include/asm-ppc vs. include/asm-powerpc
Date: Thu, 28 Aug 2008 10:30:48 -0400 [thread overview]
Message-ID: <1219933848.16802.96.camel@homebase.localnet> (raw)
In-Reply-To: <200808281553.18167.arnd@arndb.de>
On Thu, 2008-08-28 at 15:53 +0200, Arnd Bergmann wrote:
> The easiest solution should be to just include all your modules in
> the kernel source as patches, rather than building them externally.
>
> That will give you access to all the headers you need.
It doesn't matter whether I build my code in the kernel as patches, or
not. The problem is not that I don't have the headers handy, it's that
they simply don't exist in asm-ppc anymore, not even in the linux source
tree.
There is no asm-ppc/ppc_asm.h in the kernel anymore. In my code that
includes it, where ARCH=ppc and include/asm is linked to asm-ppc, how do
I get ahold of that file? I can't use #include <asm/ppc_asm.h> like I
used to. Do I have to use #include <asm-powerpc/ppc_asm.h> explicitly?
At least this will work... but read on:
Even more troublesome are headers like <linux/posix_types.h>, which
includes <asm/posix_types.h>, but there IS NO asm-ppc/posix_types.h file
in the kernel tree! There is only an asm-powerpc/posix_types.h... but
if asm is a link to asm-ppc, this fails and I have no way to fix it!
On the other hand, if I cheat and set the asm symlink pointing to
asm-powerpc instead, then when I include files like <linux/interrupt.h>.
which includes <linux/hardirq.h>, which includes <asm/hardirq.h>, which
(because I have CONFIG_40X defined) includes <asm/ibm44x.h>, I get the
opposite problem: there is no asm-powerpc/ibm4xx.h; that header exists
only in the asm-ppc directory. So now THAT include fails.
I seem to be out of luck here.
next prev parent reply other threads:[~2008-08-28 14:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 13:07 2.6.25: include/asm-ppc vs. include/asm-powerpc Paul Smith
2008-08-28 13:53 ` Arnd Bergmann
2008-08-28 14:30 ` Paul Smith [this message]
2008-08-28 14:38 ` Josh Boyer
2008-08-28 14:42 ` Arnd Bergmann
2008-08-28 16:01 ` Paul Smith
2008-08-28 18:07 ` Paul Smith
2008-08-28 14:48 ` Roland Dreier
2008-08-28 13:56 ` Darcy Watkins
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=1219933848.16802.96.camel@homebase.localnet \
--to=paul@mad-scientist.us \
--cc=arnd@arndb.de \
--cc=linuxppc-embedded@ozlabs.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