[patch] blkdev.h/elevator.h

From: Jan Engelhardt
Date: Thu Jun 22 2006 - 14:00:19 EST


Hello Jens, hello Andrew,


given the issue with blkdev.h and elevator.h, I cooked up this one. Is that
acceptable?

diff --fast -Ndpru 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-22 17:07:20.519988000 +0200
@@ -1,6 +1,10 @@
#ifndef _LINUX_ELEVATOR_H
#define _LINUX_ELEVATOR_H

+#ifndef _LINUX_BLKDEV_H
+# warning "Never use <linux/elevator.h> directly; include <linux/blkdev.h> instead."
+#endif
+
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/