public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Ornati <ornati@fastwebnet.it>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: elevator.h problem
Date: Tue, 20 Jun 2006 15:30:12 +0200	[thread overview]
Message-ID: <20060620153012.2b50351d@localhost> (raw)
In-Reply-To: <Pine.LNX.4.61.0606201126001.2481@yvahk01.tjqt.qr>

On Tue, 20 Jun 2006 11:28:35 +0200 (MEST)
Jan Engelhardt <jengelh@linux01.gwdg.de> 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

  parent reply	other threads:[~2006-06-20 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-20  9:28 elevator.h problem Jan Engelhardt
2006-06-20  9:31 ` [PATCH] Standalone inclusion elevator.h Jan Engelhardt
2006-06-20 13:30 ` Paolo Ornati [this message]
2006-06-20 14:38   ` elevator.h problem Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060620153012.2b50351d@localhost \
    --to=ornati@fastwebnet.it \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox