Re: mtdsuper.c BLOCK=n compile error

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian Bunk <bunk@...>
Cc: Al Viro <viro@...>, <linux-mtd@...>, <linux-kernel@...>
Date: Friday, August 1, 2008 - 6:48 pm

On Sat, 2008-08-02 at 01:30 +0300, Adrian Bunk wrote:

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c
index 9b6af7e..e03250b 100644
--- a/drivers/mtd/mtdsuper.c
+++ b/drivers/mtd/mtdsuper.c
@@ -178,6 +178,7 @@ int get_sb_mtd(struct file_system_type *fs_type, int
flags,
 		}
 	}
 
+#ifdef CONFIG_BLOCK
 	/* try the old way - the hack where we allowed users to mount
 	 * /dev/mtdblock$(n) but didn't actually _use_ the blockdev
 	 */
@@ -200,6 +201,7 @@ int get_sb_mtd(struct file_system_type *fs_type, int
flags,
 			     mnt);
 
 not_an_MTD_device:
+#endif /* CONFIG_BLOCK */
 	if (!(flags & MS_SILENT))
 		printk(KERN_NOTICE
 		       "MTD: Attempt to mount non-MTD device \"%s\"\n",

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation

--
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)