public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Clive Davies <cdavies@altera.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] kdev_t updates
Date: Mon, 21 Jan 2002 17:02:31 +0000	[thread overview]
Message-ID: <21414.1011632551@redhat.com> (raw)
In-Reply-To: <200201211611.g0LGBPv22298@uk-proclin7.altera.com>

cdavies@altera.com said:
>  The type definition of kdev_t has changed in 2.5.2. This patch
> updates  a couple of files to reflect this. If its Ok, then I'll check
> it in.

Can you couple it with the appropriate magic in include/linux/compatmac.h 
and make sure that's included from the affected files?

Something like this ought to do it:

#if LINUX_KERNEL_CODE < KERNEL_VERSION(2,5,1)
#define minor(x) MINOR(x)
#define major(x) MAJOR(x)
#define NODEV 0
#else
#define to_kdev_t(x) (x)
#endif

--
dwmw2

  reply	other threads:[~2002-01-21 16:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-21 16:11 [PATCH] kdev_t updates Clive Davies
2002-01-21 17:02 ` David Woodhouse [this message]
2002-01-22  9:57   ` Clive Davies

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=21414.1011632551@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=cdavies@altera.com \
    --cc=linux-mtd@lists.infradead.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