All of lore.kernel.org
 help / color / mirror / Atom feed
From: jbarnes@sgi.com (Jesse Barnes)
To: linux-ia64@vger.kernel.org
Subject: Re: SAL version checking
Date: Mon, 23 Feb 2004 21:09:20 +0000	[thread overview]
Message-ID: <20040223210920.GA8433@sgi.com> (raw)
In-Reply-To: <20040223210103.GG25779@parcelfarce.linux.theplanet.co.uk>

On Mon, Feb 23, 2004 at 09:01:05PM +0000, Matthew Wilcox wrote:
> +int sal_check_version(int major, int minor)
> +{
> +       if (major < sal_rev_major)
> +               return 1;
> +       if (major > sal_rev_major)
> +               return 0;
> +       return (sal_rev_minor >= minor);
>  }
> 
> 
> Anyone want to propose a different solution?

It looks reasonable to me, though I thought we were the only ones that
cared about PROM revisions ;).  If you go ahead and push this in, we
could use it in arch/ia64/sn/kernel/setup.c, where we check for
incompatibilties bad enough to cause us to bail out...

Jesse

  reply	other threads:[~2004-02-23 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-23 21:01 SAL version checking Matthew Wilcox
2004-02-23 21:09 ` Jesse Barnes [this message]
2004-02-23 21:21 ` Matthew Wilcox
2004-02-23 21:43 ` Jesse Barnes

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=20040223210920.GA8433@sgi.com \
    --to=jbarnes@sgi.com \
    --cc=linux-ia64@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.