From: Jens Axboe Date: Fri, 11 May 2007 11:29:54 +0000 (+0200) Subject: Fix compile/link of init/do_mounts.c with !CONFIG_BLOCK X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87c1efbfeac49849b981a7eac8cba42d4a49b2e9;p=mv-sheeva.git 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 --- diff --git a/include/linux/genhd.h b/include/linux/genhd.h index f589559cf07..4c03ee353e7 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