Skip to content

Commit

Permalink
Fix compile/link of init/do_mounts.c with !CONFIG_BLOCK
Browse files Browse the repository at this point in the history
We need a stub function for when CONFIG_BLOCK isn't set.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed May 11, 2007
1 parent d89d879 commit 87c1efb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/linux/genhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 87c1efb

Please sign in to comment.