[PATCH] drivers/mtd/mtdsuper.c: fix build error

Adrian Bunk bunk at kernel.org
Sat Aug 2 19:32:40 EDT 2008


On Sun, Aug 03, 2008 at 02:53:04AM +0400, Alexander Beregalov wrote:
> From: Alexander Beregalov <a.beregalov at 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 at gmail.com>
> Cc: Al Viro <viro at 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




More information about the linux-mtd mailing list