* [PATCH] missing include in mmc
@ 2007-10-17 0:09 Al Viro
2007-10-17 0:25 ` David Brownell
0 siblings, 1 reply; 5+ messages in thread
From: Al Viro @ 2007-10-17 0:09 UTC (permalink / raw)
To: Linus Torvalds; +Cc: dbrownell, linux-kernel
AFAICS, fallout from repacing include of blkdev.h with include of bio.h.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
index 71b986b..7ae18ea 100644
--- a/drivers/mmc/host/mmc_spi.c
+++ b/drivers/mmc/host/mmc_spi.c
@@ -30,6 +30,7 @@
#include <linux/dma-mapping.h>
#include <linux/crc7.h>
#include <linux/crc-itu-t.h>
+#include <linux/scatterlist.h>
#include <linux/mmc/host.h>
#include <linux/mmc/mmc.h> /* for R1_SPI_* bit values */
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] missing include in mmc
2007-10-17 0:09 [PATCH] missing include in mmc Al Viro
@ 2007-10-17 0:25 ` David Brownell
2007-10-17 2:04 ` Al Viro
0 siblings, 1 reply; 5+ messages in thread
From: David Brownell @ 2007-10-17 0:25 UTC (permalink / raw)
To: viro, torvalds; +Cc: linux-kernel
> From viro@ftp.linux.org.uk Tue Oct 16 17:18:43 2007
> Date: Wed, 17 Oct 2007 01:09:07 +0100
> From: Al Viro <viro@ftp.linux.org.uk>
> To: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: dbrownell@users.sourceforge.net, linux-kernel@vger.kernel.org
> Subject: [PATCH] missing include in mmc
>
> AFAICS, fallout from repacing include of blkdev.h with include of bio.h.
Out of curiousity, which architecture(s) need this?
I did test builds on three, and didn't see a need for it ...
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> ---
> diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
> index 71b986b..7ae18ea 100644
> --- a/drivers/mmc/host/mmc_spi.c
> +++ b/drivers/mmc/host/mmc_spi.c
> @@ -30,6 +30,7 @@
> #include <linux/dma-mapping.h>
> #include <linux/crc7.h>
> #include <linux/crc-itu-t.h>
> +#include <linux/scatterlist.h>
>
> #include <linux/mmc/host.h>
> #include <linux/mmc/mmc.h> /* for R1_SPI_* bit values */
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] missing include in mmc
2007-10-17 0:25 ` David Brownell
@ 2007-10-17 2:04 ` Al Viro
2007-10-17 3:21 ` David Brownell
0 siblings, 1 reply; 5+ messages in thread
From: Al Viro @ 2007-10-17 2:04 UTC (permalink / raw)
To: David Brownell; +Cc: torvalds, linux-kernel
On Tue, Oct 16, 2007 at 05:25:51PM -0700, David Brownell wrote:
> > From viro@ftp.linux.org.uk Tue Oct 16 17:18:43 2007
> > Date: Wed, 17 Oct 2007 01:09:07 +0100
> > From: Al Viro <viro@ftp.linux.org.uk>
> > To: Linus Torvalds <torvalds@linux-foundation.org>
> > Cc: dbrownell@users.sourceforge.net, linux-kernel@vger.kernel.org
> > Subject: [PATCH] missing include in mmc
> >
> > AFAICS, fallout from repacing include of blkdev.h with include of bio.h.
>
> Out of curiousity, which architecture(s) need this?
Umm... IIRC, m32r had been the first build to step into that, at which point
the missing include had been added; the rest had reached that point later, so
I'm not sure which ones would trigger the same crap. Not hard to test,
though...
Aha. m68k as well.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] missing include in mmc
2007-10-17 2:04 ` Al Viro
@ 2007-10-17 3:21 ` David Brownell
2007-10-17 7:40 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: David Brownell @ 2007-10-17 3:21 UTC (permalink / raw)
To: viro; +Cc: torvalds, linux-kernel
> > > AFAICS, fallout from repacing include of blkdev.h with include of bio.h.
> >
> > Out of curiousity, which architecture(s) need this?
>
> Umm... IIRC, m32r had been the first build to step into that, at which point
> the missing include had been added; the rest had reached that point later, so
> I'm not sure which ones would trigger the same crap. Not hard to test,
> though...
>
> Aha. m68k as well.
FWIW this driver originally started out on ColdFire (m68k derived),
a few years back. :)
Every time I seee a case where architectures don't act the same
with respect to #includes, I count it as an unpleasant surprise.
Not one that's very easy to avoid, unfortunately, but I think it's
been happening less often lately.
Thanks for the fix.
- Dave
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] missing include in mmc
2007-10-17 3:21 ` David Brownell
@ 2007-10-17 7:40 ` Geert Uytterhoeven
0 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2007-10-17 7:40 UTC (permalink / raw)
To: David Brownell; +Cc: viro, torvalds, linux-kernel
On Tue, 16 Oct 2007, David Brownell wrote:
> > > > AFAICS, fallout from repacing include of blkdev.h with include of bio.h.
> > >
> > > Out of curiousity, which architecture(s) need this?
> >
> > Umm... IIRC, m32r had been the first build to step into that, at which point
> > the missing include had been added; the rest had reached that point later, so
> > I'm not sure which ones would trigger the same crap. Not hard to test,
> > though...
> >
> > Aha. m68k as well.
Yesterday I saw a similar issue with drivers/md/dm-mpath-rdac.c, but it
disappeared during the night, and I didn't see an obvious change that
fixed it...
> Every time I seee a case where architectures don't act the same
> with respect to #includes, I count it as an unpleasant surprise.
> Not one that's very easy to avoid, unfortunately, but I think it's
> been happening less often lately.
Simple rule of thumb: he who uses fields of struct xxx should include
the header file that defines struct xxx...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-17 7:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 0:09 [PATCH] missing include in mmc Al Viro
2007-10-17 0:25 ` David Brownell
2007-10-17 2:04 ` Al Viro
2007-10-17 3:21 ` David Brownell
2007-10-17 7:40 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox