[PATCH] Standalone inclusion elevator.h

From: Jan Engelhardt
Date: Tue Jun 20 2006 - 05:30:48 EST


Hi,


Patch:
Make it possible to include elevator.h standalone (e.g. as the first file
of a row of #includes).

(cdemu for example only requires elv_requeue_request and therefore only
needs elevtor.h.)

Signed-off-by: Jan Engelhardt <jengelh@xxxxxx>

# AS_59-standalone-linux_elevator_h.diff
diff --fast -dpru linux-2.6.17~/include/linux/elevator.h linux-2.6.17+/include/linux/elevator.h
--- linux-2.6.17~/include/linux/elevator.h 2006-06-18 22:51:43.000000000 +0200
+++ linux-2.6.17+/include/linux/elevator.h 2006-06-20 11:18:13.225409000 +0200
@@ -1,6 +1,12 @@
#ifndef _LINUX_ELEVATOR_H
#define _LINUX_ELEVATOR_H

+#include <linux/blkdev.h>
+#include <linux/types.h>
+
+struct bio;
+struct request;
+
typedef int (elevator_merge_fn) (request_queue_t *, struct request **,
struct bio *);

#<<eof>>

Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/