Title: [8758] trunk/fs/logfs/super.c: logfs: fix build failure when CONFIG_BLOCK is disabled
Revision
8758
Author
vapier
Date
2010-05-22 14:24:56 -0400 (Sat, 22 May 2010)

Log Message

logfs: fix build failure when CONFIG_BLOCK is disabled

From: Joern Engel <[email protected]>

When CONFIG_BLOCK is not enabled:

fs/logfs/super.c:142: error: implicit declaration of function 'bdev_get_queue'
fs/logfs/super.c:142: error: invalid type argument of '->' (have 'int')

Modified Paths

Diff

Modified: trunk/fs/logfs/super.c (8757 => 8758)


--- trunk/fs/logfs/super.c	2010-05-22 18:18:04 UTC (rev 8757)
+++ trunk/fs/logfs/super.c	2010-05-22 18:24:56 UTC (rev 8758)
@@ -138,10 +138,14 @@
 	sb->s_fs_info = super;
 	sb->s_mtd = super->s_mtd;
 	sb->s_bdev = super->s_bdev;
+#ifdef CONFIG_BLOCK
 	if (sb->s_bdev)
 		sb->s_bdi = &bdev_get_queue(sb->s_bdev)->backing_dev_info;
+#endif
+#ifdef CONFIG_MTD
 	if (sb->s_mtd)
 		sb->s_bdi = sb->s_mtd->backing_dev_info;
+#endif
 	return 0;
 }
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to