From: Andrew Morton <akpm@linux-foundation.org>
To: Samuel Ortiz <sameo@openedhand.com>
Cc: linux-kernel@vger.kernel.org, Paul Sokolovsky <pmiscml@gmail.com>,
Ben Dooks <ben@trinity.fluff.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [RFC] [PATCH -mm] ASIC3 driver
Date: Fri, 19 Oct 2007 11:00:34 -0700 [thread overview]
Message-ID: <20071019110034.1534bb86.akpm@linux-foundation.org> (raw)
In-Reply-To: <20071019105258.GA15170@caravaggio>
On Fri, 19 Oct 2007 12:53:00 +0200 Samuel Ortiz <sameo@openedhand.com> wrote:
> On Thu, Oct 18, 2007 at 03:05:44PM -0700, Andrew Morton wrote:
> > On Thu, 18 Oct 2007 11:12:41 +0200
> > Samuel Ortiz <sameo@openedhand.com> wrote:
>
> > > +#include <linux/module.h>
> > > +#include <linux/version.h>
> > > +#include <linux/irq.h>
> >
> > Please see the large comment at the top of linux/irq.h. I believe this
> > driver will fial to compile on at least arm.
> It doesn't build as a module, since we need the irq.h symbols.
> I changed MFD_ASIC3 to bool. I somehow feel that this is not the cleanest
> solution, but OTOH I think that dynamically adding IRQs and GPIOs to an
> embedded board doesn't make much sense.
We seem to have miscommunicated here. <linux/irq.h> contains references to
things which only some architectures actually implement. I don't know
which architectures those are, but it includes common ones like x86, so
it's a real trap. I recall it does not include arm, so your code might
break on arm.
At least, that's what's _supposed_ to happen: I just compiled and linked
this driver into an ARM kernel with no problems so now I'm all confused as
to what the problem was.
Oh well, we'll see...
next prev parent reply other threads:[~2007-10-19 18:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 9:12 [RFC] [PATCH -mm] ASIC3 driver Samuel Ortiz
2007-10-18 22:05 ` Andrew Morton
2007-10-18 22:15 ` Thomas Gleixner
2007-10-18 23:42 ` Samuel Ortiz
2007-10-19 10:53 ` Samuel Ortiz
2007-10-19 12:02 ` pHilipp Zabel
2007-10-19 18:00 ` Andrew Morton [this message]
2007-10-19 18:17 ` Thomas Gleixner
2007-10-20 11:31 ` Samuel Ortiz
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=20071019110034.1534bb86.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ben@trinity.fluff.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmiscml@gmail.com \
--cc=sameo@openedhand.com \
--cc=tglx@linutronix.de \
/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