Re: elevator.h problem

From: Paolo Ornati
Date: Tue Jun 20 2006 - 09:31:54 EST


On Tue, 20 Jun 2006 11:28:35 +0200 (MEST)
Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx> wrote:

> I am trying to compile a module that requires elv_requeue_request.
> I include <linux/elevator.h>, but that fails. Now that elevator.h includes
> blkdev.h (to get at the reqeust_queue_t typedef -- see next post),
> blkdev.h wants elv_dequeue_request, but which is defined in elevator.h.
> This circular dependency is really a problem, does anyone have
> an adequate fix? 2.6.17.

"linux/elevator.h" doesn't include anything
"linux/blkdev.h" defines some typedefs needed by elevator.h and then
includes it

So if you need "linux/elevator.h" you can just do:

#include <linux/blkdev.h>

or

#include <linux/blkdev.h>
#include <linux/elevator.h>


What's the problem?

--
Paolo Ornati
Linux 2.6.17 on x86_64
-
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/