From: Andrew Morton <akpm@linux-foundation.org>
To: David Brownell <david-b@pacbell.net>
Cc: Michael Buesch <mb@bu3sch.de>,
sfr@canb.auug.org.au, linux-kernel@vger.kernel.org,
Greg KH <greg@kroah.com>
Subject: Re: [PATCH] gpiolib: Allow user-selection
Date: Wed, 2 Jul 2008 22:08:42 -0700 [thread overview]
Message-ID: <20080702220842.44364045.akpm@linux-foundation.org> (raw)
In-Reply-To: <200807022200.49428.david-b@pacbell.net>
On Wed, 2 Jul 2008 22:00:49 -0700 David Brownell <david-b@pacbell.net> wrote:
> On Wednesday 02 July 2008, Andrew Morton wrote:
> > On Wed, 2 Jul 2008 23:46:53 +0200
> > Michael Buesch <mb@bu3sch.de> wrote:
> >
> > > This patch adds functionality to the gpio-lib subsystem to
> > > make it possible to enable the gpio-lib code even if the
> > > architecture code didn't request to get it built in.
> >
> > drivers/gpio/gpiolib.c: In function 'gpio_export':
> > drivers/gpio/gpiolib.c:432: error: 'struct class' has no member named 'devices'
> > drivers/gpio/gpiolib.c:456: error: implicit declaration of function 'device_create'
> > drivers/gpio/gpiolib.c:457: warning: assignment makes pointer from integer without a cast
> > drivers/gpio/gpiolib.c: In function 'gpio_unexport':
> > drivers/gpio/gpiolib.c:509: warning: passing argument 2 of 'class_find_device' from incompatible pointer type
> > drivers/gpio/gpiolib.c:509: error: too few arguments to function 'class_find_device'
> > drivers/gpio/gpiolib.c: In function 'gpiochip_export':
> > drivers/gpio/gpiolib.c:536: error: 'struct class' has no member named 'devices'
> > drivers/gpio/gpiolib.c:542: warning: assignment makes pointer from integer without a cast
> > drivers/gpio/gpiolib.c: In function 'gpiochip_unexport':
> > drivers/gpio/gpiolib.c:575: warning: passing argument 2 of 'class_find_device' from incompatible pointer type
> > drivers/gpio/gpiolib.c:575: error: too few arguments to function 'class_find_device'
> >
> > I assume this patch was prepared against some ancient out-of-date
> > kernel such as current Linus mainline.
>
> May be, but shuffling headers around would not have caused
> that type of breakage.
>
> I'm thinking some driver model changes broke the gpio sysfs
> interface code, and this happens to show up right now because
> that code wasn't previously getting built.
>
> Grumph. I can easily switch the device_create() over to
> use device_create_drvdata() -- didn't I already send in
> a patch like that? -- but the other stuff is completely
> backwards-incompatible.
>
beats me ididntdoitnobodysawmedoit.
But what I am repeatedly seeing is people cheerfully raising 2.6.27
patches against the 2.6.26 tree when we have a nice 2.6.27 tree for
developing against. Those days are over, guys.
I'm also seeing obvious signs that developers aren't _testing_ their
new code within the context of the 2.6.27 tree. They're obviously
testing their stuff against 2.6.26 and then hoping and praying, only it
doesn't always work out for them.
next prev parent reply other threads:[~2008-07-03 7:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 21:46 [PATCH] gpiolib: Allow user-selection Michael Buesch
2008-07-03 0:04 ` Andrew Morton
2008-07-03 0:26 ` Michael Buesch
2008-07-03 5:00 ` David Brownell
2008-07-03 5:08 ` Andrew Morton [this message]
2008-07-03 5:41 ` David Brownell
2008-07-03 19:37 ` Greg KH
2008-07-03 21:28 ` David Brownell
2008-07-03 23:08 ` Greg KH
2008-07-12 5:32 ` David Brownell
2008-07-03 8:36 ` Rene Herman
2008-07-03 9:01 ` Andrew Morton
2008-07-03 10:19 ` Rene Herman
2008-07-03 8:25 ` David Brownell
2008-07-03 8:42 ` Michael Buesch
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=20080702220842.44364045.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mb@bu3sch.de \
--cc=sfr@canb.auug.org.au \
/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