summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe2007-05-11 13:29:54 +0200
committerJens Axboe2007-05-11 13:29:54 +0200
commit87c1efbfeac49849b981a7eac8cba42d4a49b2e9 (patch)
tree856b18b90a89c30bd2fa2a1982a3d7c6a15364d7 /include/linux
parentWhen stacked block devices are in-use (e.g. md or dm), the recursive calls (diff)
downloadkernel-qcow2-linux-87c1efbfeac49849b981a7eac8cba42d4a49b2e9.tar.gz
kernel-qcow2-linux-87c1efbfeac49849b981a7eac8cba42d4a49b2e9.tar.xz
kernel-qcow2-linux-87c1efbfeac49849b981a7eac8cba42d4a49b2e9.zip
Fix compile/link of init/do_mounts.c with !CONFIG_BLOCK
We need a stub function for when CONFIG_BLOCK isn't set. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/genhd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index f589559cf070..4c03ee353e78 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -434,6 +434,10 @@ static inline struct block_device *bdget_disk(struct gendisk *disk, int index)
#endif
-#endif
+#else /* CONFIG_BLOCK */
+
+static inline void printk_all_partitions(void) { }
+
+#endif /* CONFIG_BLOCK */
#endif