]> git.hungrycats.org Git - linux/commitdiff
[PATCH] inline unsued functions for MMUless configuration
authorGreg Ungerer <gerg@snapgear.com>
Tue, 18 Feb 2003 13:47:11 +0000 (05:47 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 18 Feb 2003 13:47:11 +0000 (05:47 -0800)
This patch adds inline versions of init_emergency_isa_pool() and
blk_queue_bounce() for MMUless builds. This patch was originally
from Christoph Hellwig, as part of the MMUless merge.

include/linux/blkdev.h

index 82766b7e60b010434393269b7106420f63b13e1a..b5a2f676c4f8fb61aa78a89e6dbfefd8e4a5748b 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_BLKDEV_H
 #define _LINUX_BLKDEV_H
 
+#include <linux/config.h>
 #include <linux/major.h>
 #include <linux/genhd.h>
 #include <linux/list.h>
@@ -301,8 +302,18 @@ extern unsigned long blk_max_low_pfn, blk_max_pfn;
 #define BLK_BOUNCE_ANY         ((u64)blk_max_pfn << PAGE_SHIFT)
 #define BLK_BOUNCE_ISA         (ISA_DMA_THRESHOLD)
 
+#if CONFIG_MMU
 extern int init_emergency_isa_pool(void);
 extern void blk_queue_bounce(request_queue_t *q, struct bio **bio);
+#else
+static inline int init_emergency_isa_pool(void)
+{
+       return 0;
+}
+static inline void blk_queue_bounce(request_queue_t *q, struct bio **bio)
+{
+}
+#endif /* CONFIG_MMU */
 
 #define rq_for_each_bio(bio, rq)       \
        if ((rq->bio))                  \