linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: richardcochran@gmail.com (Richard Cochran)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ixp4xx: fix compilation by adding gpiolib support
Date: Mon, 28 May 2012 07:43:09 +0200	[thread overview]
Message-ID: <20120528054309.GA6524@netboy.at.omicron.at> (raw)
In-Reply-To: <m3bol9ibxb.fsf@intrepid.localdomain>

On Sun, May 27, 2012 at 10:52:48PM +0200, Krzysztof Halasa wrote:
> Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> writes:
> 
> >> So has every kernel since 3.1 been broken, or is it just broken now
> >> but a good idea to backport anyway?
> >
> > every kernel since 3.1 (even 3.1-rc-something). Would be nice to see
> > this issue fixed as similar patches have been sent from time to time but
> > never been merged.
> 
> Is it really that bad? I'm using IXP425 with 3.2 and it definitely
> compiles (and works). Extra patches maybe? I can't see anything obvious.

[Sigh] 

Yes, it is really that bad. Try the following:

1. export kernel with tag v3.2
2. make ixp4xx_defconfig
3. make

You will see:

  CC      arch/arm/mach-ixp4xx/nslu2-setup.o
In file included from arch/arm/mach-ixp4xx/include/mach/gpio.h:72,
                 from /tmp/linux-v3.2/arch/arm/include/asm/gpio.h:5,
                 from include/linux/gpio.h:30,
                 from arch/arm/mach-ixp4xx/nslu2-setup.c:19:
include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep':
include/asm-generic/gpio.h:212: error: implicit declaration of function '__gpio_get_value'
include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep':
include/asm-generic/gpio.h:218: error: implicit declaration of function '__gpio_set_value'
make[1]: *** [arch/arm/mach-ixp4xx/nslu2-setup.o] Error 1

Richard

      reply	other threads:[~2012-05-28  5:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23 16:19 [PATCH] ixp4xx: fix compilation by adding gpiolib support Richard Cochran
2012-05-23 17:27 ` Jonathan Nieder
2012-05-23 18:18   ` Jonathan Nieder
2012-05-24  7:10     ` Richard Cochran
2012-05-23 17:43 ` Arnd Bergmann
2012-05-23 19:07   ` Arnaud Patard (Rtp)
2012-05-23 19:39     ` Arnd Bergmann
2012-05-24  7:07       ` Richard Cochran
2012-05-24  9:01         ` Arnd Bergmann
2012-05-24 10:16           ` Richard Cochran
2012-05-24  9:31       ` Imre Kaloz
2012-05-24 13:12         ` Arnd Bergmann
2012-05-24 15:13           ` Richard Cochran
2012-05-27 20:52     ` Krzysztof Halasa
2012-05-28  5:43       ` Richard Cochran [this message]

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=20120528054309.GA6524@netboy.at.omicron.at \
    --to=richardcochran@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).