mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mikpe@csd.uu.se
To: ak@suse.de
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH][2.5.71] x86-64 floppy.h missing irqreturn_t conversion
Date: Mon, 16 Jun 2003 17:12:18 +0200	[thread overview]
Message-ID: <16109.56914.269879.622094@gargle.gargle.HOWL> (raw)

Andi,

In the 2.5.71 x86-64 kernel, floppy.h is incompletely converted
for the recent irqreturn_t changes. This doesn't show up as a
compile-time warning. The error is that floppy_hardint() always
returns IRQ_HANDLED in the !doing_pdma case, instead of returning
whatever floppy_interrupt() returned, which can be IRQ_NONE.

This patch is basically just a merge with asm-i386/floppy.h.

/Mikael

diff -ruN linux-2.5.71-andi/include/asm-x86_64/floppy.h linux-2.5.71-mikpe/include/asm-x86_64/floppy.h
--- linux-2.5.71-andi/include/asm-x86_64/floppy.h	2003-05-28 22:16:03.000000000 +0200
+++ linux-2.5.71-mikpe/include/asm-x86_64/floppy.h	2003-06-16 16:09:26.000000000 +0200
@@ -22,7 +22,7 @@
  * floppy accesses go through the track buffer.
  */
 #define _CROSS_64KB(a,s,vdma) \
-(!vdma && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))
+(!(vdma) && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))
 
 #define CROSS_64KB(a,s) _CROSS_64KB(a,s,use_virtual_dma & 1)
 
@@ -62,10 +62,8 @@
 	static int bytes=0;
 	static int dma_wait=0;
 #endif
-	if(!doing_pdma) {
-		floppy_interrupt(irq, dev_id, regs);
-		return IRQ_HANDLED;
-	}
+	if (!doing_pdma)
+		return floppy_interrupt(irq, dev_id, regs);
 
 #ifdef TRACE_FLPY_INT
 	if(!calls)

                 reply	other threads:[~2003-06-16 15:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=16109.56914.269879.622094@gargle.gargle.HOWL \
    --to=mikpe@csd.uu.se \
    --cc=ak@suse.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

all inboxes | Powered by JetHome®