Re: elevator.h problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, 20 Jun 2006 11:28:35 +0200 (MEST)
Jan Engelhardt <[email protected]> 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>


#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 [email protected]
More majordomo info at
Please read the FAQ at

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux