mtdsuper.c BLOCK=n compile error

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: nAl Viro <viro@...>, <dwmw2@...>
Cc: <linux-mtd@...>, <linux-kernel@...>
Date: Friday, August 1, 2008 - 6:30 pm

Commit d5686b444ff3f72808d2b3fbd58672a86cdf38e7
(switch mtd and dm-table to lookup_bdev()) causes
the following compile error with CONFIG_BLOCK=n:

<--  snip  -->

...
  CC      drivers/mtd/mtdsuper.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtdsuper.c: In function `get_sb_mtd':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtdsuper.c:184: error: implicit declaration of function 'lookup_bdev'
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtdsuper.c:184: warning: assignment makes pointer from integer without a cast
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtdsuper.c:197: error: implicit declaration of function 'bdput'
make[3]: *** [drivers/mtd/mtdsuper.o] Error 1

<--  snip  -->

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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mtdsuper.c BLOCK=n compile error, Adrian Bunk, (Fri Aug 1, 6:30 pm)
Re: mtdsuper.c BLOCK=n compile error, David Woodhouse, (Fri Aug 1, 6:48 pm)
Re: mtdsuper.c BLOCK=n compile error, Adrian Bunk, (Fri Aug 1, 6:58 pm)
Re: mtdsuper.c BLOCK=n compile error, David Woodhouse, (Fri Aug 1, 7:20 pm)
Re: mtdsuper.c BLOCK=n compile error, David Woodhouse, (Fri Aug 1, 7:26 pm)