OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d89d879
)
Fix compile/link of init/do_mounts.c with !CONFIG_BLOCK
author
Jens Axboe
<jens.axboe@oracle.com>
Fri, 11 May 2007 11:29:54 +0000
(13:29 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 11 May 2007 11:29:54 +0000
(13:29 +0200)
We need a stub function for when CONFIG_BLOCK isn't set.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/genhd.h
patch
|
blob
|
history
diff --git
a/include/linux/genhd.h
b/include/linux/genhd.h
index
f589559
..
4c03ee3
100644
(file)
--- 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