public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] drivers/mtd/mtdsuper.c: fix build error
@ 2008-08-02 22:53 Alexander Beregalov
  2008-08-02 23:32 ` Adrian Bunk
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Beregalov @ 2008-08-02 22:53 UTC (permalink / raw)
  To: viro, dwmw2, linux-mtd, linux-kernel

From: Alexander Beregalov <a.beregalov@gmail.com>

drivers/mtd/mtdsuper.c: fix build error

drivers/mtd/mtdsuper.c:184: error: implicit declaration of
	function 'lookup_bdev'
drivers/mtd/mtdsuper.c:197: error: implicit declaration of
	function 'bdput'

Introduced by commit d5686b444ff3f72808d2b3fbd58672a86cdf38e7


Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
---

 drivers/mtd/mtdsuper.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c
index 9b6af7e..ec950cd 100644
--- a/drivers/mtd/mtdsuper.c
+++ b/drivers/mtd/mtdsuper.c
@@ -13,6 +13,7 @@
 #include <linux/mtd/super.h>
 #include <linux/namei.h>
 #include <linux/ctype.h>
+#include <linux/fs.h>
 
 /*
  * compare superblocks to see if they're equivalent

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] drivers/mtd/mtdsuper.c: fix build error
  2008-08-02 22:53 [PATCH] drivers/mtd/mtdsuper.c: fix build error Alexander Beregalov
@ 2008-08-02 23:32 ` Adrian Bunk
  2008-08-02 23:40   ` Alexander Beregalov
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Bunk @ 2008-08-02 23:32 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: linux-mtd, dwmw2, viro, linux-kernel

On Sun, Aug 03, 2008 at 02:53:04AM +0400, Alexander Beregalov wrote:
> From: Alexander Beregalov <a.beregalov@gmail.com>
> 
> drivers/mtd/mtdsuper.c: fix build error
> 
> drivers/mtd/mtdsuper.c:184: error: implicit declaration of
> 	function 'lookup_bdev'
> drivers/mtd/mtdsuper.c:197: error: implicit declaration of
> 	function 'bdput'


It already gets fs.h indirectly through linux/mtd/super.h, so while 
your patch might be correct it cannot fix a compile error.

If that's with CONFIG_BLOCK=n then it's
  http://bugzilla.kernel.org/show_bug.cgi?id=11225

Otherwise please send your .config .


> Introduced by commit d5686b444ff3f72808d2b3fbd58672a86cdf38e7
> 
> 
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> ---
> 
>  drivers/mtd/mtdsuper.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c
> index 9b6af7e..ec950cd 100644
> --- a/drivers/mtd/mtdsuper.c
> +++ b/drivers/mtd/mtdsuper.c
> @@ -13,6 +13,7 @@
>  #include <linux/mtd/super.h>
>  #include <linux/namei.h>
>  #include <linux/ctype.h>
> +#include <linux/fs.h>
>  
>  /*
>   * compare superblocks to see if they're equivalent

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drivers/mtd/mtdsuper.c: fix build error
  2008-08-02 23:32 ` Adrian Bunk
@ 2008-08-02 23:40   ` Alexander Beregalov
  2008-08-02 23:45     ` Adrian Bunk
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Beregalov @ 2008-08-02 23:40 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-mtd, dwmw2, viro, linux-kernel

2008/8/3 Adrian Bunk <bunk@kernel.org>:
> On Sun, Aug 03, 2008 at 02:53:04AM +0400, Alexander Beregalov wrote:
>> From: Alexander Beregalov <a.beregalov@gmail.com>
>>
>> drivers/mtd/mtdsuper.c: fix build error
>>
>> drivers/mtd/mtdsuper.c:184: error: implicit declaration of
>>       function 'lookup_bdev'
>> drivers/mtd/mtdsuper.c:197: error: implicit declaration of
>>       function 'bdput'
>
>
> It already gets fs.h indirectly through linux/mtd/super.h, so while
> your patch might be correct it cannot fix a compile error.
>
> If that's with CONFIG_BLOCK=n then it's
>  http://bugzilla.kernel.org/show_bug.cgi?id=11225
>
> Otherwise please send your .config .

I do not have this config, I collect log from builds with randconfig
and try to fix problems.
It seems it is the same bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drivers/mtd/mtdsuper.c: fix build error
  2008-08-02 23:40   ` Alexander Beregalov
@ 2008-08-02 23:45     ` Adrian Bunk
  2008-08-02 23:52       ` Alexander Beregalov
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Bunk @ 2008-08-02 23:45 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: linux-mtd, dwmw2, viro, linux-kernel

On Sun, Aug 03, 2008 at 03:40:12AM +0400, Alexander Beregalov wrote:
> 2008/8/3 Adrian Bunk <bunk@kernel.org>:
> > On Sun, Aug 03, 2008 at 02:53:04AM +0400, Alexander Beregalov wrote:
> >> From: Alexander Beregalov <a.beregalov@gmail.com>
> >>
> >> drivers/mtd/mtdsuper.c: fix build error
> >>
> >> drivers/mtd/mtdsuper.c:184: error: implicit declaration of
> >>       function 'lookup_bdev'
> >> drivers/mtd/mtdsuper.c:197: error: implicit declaration of
> >>       function 'bdput'
> >
> >
> > It already gets fs.h indirectly through linux/mtd/super.h, so while
> > your patch might be correct it cannot fix a compile error.
> >
> > If that's with CONFIG_BLOCK=n then it's
> >  http://bugzilla.kernel.org/show_bug.cgi?id=11225
> >
> > Otherwise please send your .config .
> 
> I do not have this config, I collect log from builds with randconfig
> and try to fix problems.
>...

You must store the config of the failed builds somewhere, since 
otherwise (like in this case) you cannot verify whether a patch
actually fixes a problem.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drivers/mtd/mtdsuper.c: fix build error
  2008-08-02 23:45     ` Adrian Bunk
@ 2008-08-02 23:52       ` Alexander Beregalov
  2008-08-03  8:01         ` Alexander Beregalov
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Beregalov @ 2008-08-02 23:52 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-mtd, dwmw2, viro, linux-kernel

2008/8/3 Adrian Bunk <bunk@kernel.org>:
> You must store the config of the failed builds somewhere, since
> otherwise (like in this case) you cannot verify whether a patch
> actually fixes a problem.
Right, I have changed this script.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drivers/mtd/mtdsuper.c: fix build error
  2008-08-02 23:52       ` Alexander Beregalov
@ 2008-08-03  8:01         ` Alexander Beregalov
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander Beregalov @ 2008-08-03  8:01 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-mtd, dwmw2, viro, linux-kernel

2008/8/3 Alexander Beregalov <a.beregalov@gmail.com>:
> 2008/8/3 Adrian Bunk <bunk@kernel.org>:
>> You must store the config of the failed builds somewhere, since
>> otherwise (like in this case) you cannot verify whether a patch
>> actually fixes a problem.
> Right, I have changed this script.
>
Yes, it is CONFIG_BLOCK=n.

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-03  8:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02 22:53 [PATCH] drivers/mtd/mtdsuper.c: fix build error Alexander Beregalov
2008-08-02 23:32 ` Adrian Bunk
2008-08-02 23:40   ` Alexander Beregalov
2008-08-02 23:45     ` Adrian Bunk
2008-08-02 23:52       ` Alexander Beregalov
2008-08-03  8:01         ` Alexander Beregalov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox