Explorar o código

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>
Jens Axboe %!s(int64=18) %!d(string=hai) anos
pai
achega
87c1efbfea
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      include/linux/genhd.h

+ 5 - 1
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