public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: "Jeffery, David" <David_Jeffery@adaptec.com>
Cc: "'linux-scsi@vger.kernel.org'" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] ips 2.5 driver update [1/4] irq return update
Date: 06 May 2003 12:47:17 -0500	[thread overview]
Message-ID: <1052243238.1819.48.camel@mulgrave> (raw)
In-Reply-To: <A3B9245C291EEF4785A24A1DBE8D852B0377A3@rtpexc01.adaptec.com>

On Tue, 2003-05-06 at 12:34, Jeffery, David wrote:
> This is the proper way to report if the interrupt
> was from a serveraid or not.

This: 

> +   irqreturn_t       irqstatus;
[...]
> +   irqstatus = (*ha->func.intr)(ha);
[...]
> -   return IRQ_HANDLED;
> +   return IRQ_RETVAL(irqstatus);

Doesn't look right.  Either your (ha->func.intr) returns true or false
and you need to put it through IRQ_RETVAL to get the correct IRQ_ value,
or it returns IRQ_HANDLED, IRQ_NONE and you just return these directly
(the latter looks to be what it does, so the IRQ_RETVAL() isn't needed).

I'm not sure this will work on 2.4 kernels, though, because the compiler
will then be making a

void irqstatus;

declaration which I think at least some versions of gcc won't like.

James



  reply	other threads:[~2003-05-06 17:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-06 17:34 [PATCH] ips 2.5 driver update [1/4] irq return update Jeffery, David
2003-05-06 17:47 ` James Bottomley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-05-06 18:18 Jeffery, David

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=1052243238.1819.48.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=David_Jeffery@adaptec.com \
    --cc=linux-scsi@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