linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Walter <srwalter@yahoo.com>
To: Friedrich Lobenstock <fl@fl.priv.at>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ftape and kernel 2.4 problem
Date: Thu, 7 Jun 2001 12:28:53 -0500	[thread overview]
Message-ID: <20010607122853.A26252@hapablap.dyn.dhs.org> (raw)
In-Reply-To: <3B1F99DF.6CCF6DF3@fl.priv.at>
In-Reply-To: <3B1F99DF.6CCF6DF3@fl.priv.at>; from fl@fl.priv.at on Thu, Jun 07, 2001 at 05:12:31PM +0200

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

Here's a patch I wrote to allow ftape to compile against 2.4.something.
It still works with 2.4.5.  I'm not sure if it works entirely (it seems
to), but it compiles and seems to work.  Enjoy!

On Thu, Jun 07, 2001 at 05:12:31PM +0200, Friedrich Lobenstock wrote:
> Hi!
> 
> As the linux-ftape mailing list is gone I'm asking you guys.
> 
> Can someone tell me how to adapt the ftape driver that I can use it
> under kernel 2.4.x (x >= 5)? I'm not that into kernel hacking that
> I know what changed from 2.2.x to 2.4.x. Below is the output of make.
> 
> BTW why wasn't the newer ftape driver ported to 2.4 but the stone age
> ftape driver is still in 2.4?
> 
> PS: Please CC me because I'm not on linux-kernel.
-- 
-Steven
In a time of universal deceit, telling the truth is a revolutionary act.
			-- George Orwell

[-- Attachment #2: ftape-patch --]
[-- Type: text/plain, Size: 844 bytes --]

diff -ru ftape-4.04a/ftape/lowlevel/ftape-init.h ftape-4.04a.mod/ftape/lowlevel/ftape-init.h
--- ftape-4.04a/ftape/lowlevel/ftape-init.h	Mon Jul  3 05:13:06 2000
+++ ftape-4.04a.mod/ftape/lowlevel/ftape-init.h	Mon Feb  5 18:58:42 2001
@@ -67,7 +67,7 @@
 }
 extern inline int ft_sigtest(unsigned long mask)
 {
-	return (current->signal.sig[0] & mask);
+	return (current->sigpending & mask);
 }
 extern inline int ft_killed(void)
 {
diff -ru ftape-4.04a/include/linux/ftape.h ftape-4.04a.mod/include/linux/ftape.h
--- ftape-4.04a/include/linux/ftape.h	Tue Jul 25 06:04:47 2000
+++ ftape-4.04a.mod/include/linux/ftape.h	Mon Feb  5 18:59:35 2001
@@ -28,7 +28,7 @@
  *      for the QIC-40/80/3010/3020 floppy-tape driver for Linux.
  *
  */
-
+#define __initlocaldata __initdata
 #define FTAPE_VERSION "ftape v4.04a 07/25/2000"
 
 #ifdef __KERNEL__

  reply	other threads:[~2001-06-07 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-07 15:12 ftape and kernel 2.4 problem Friedrich Lobenstock
2001-06-07 17:28 ` Steven Walter [this message]
2001-06-07 21:39   ` Friedrich Lobenstock
2001-06-08 16:08     ` Alan Cox
2001-06-08 17:29       ` Friedrich Lobenstock

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=20010607122853.A26252@hapablap.dyn.dhs.org \
    --to=srwalter@yahoo.com \
    --cc=fl@fl.priv.at \
    --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;
as well as URLs for NNTP newsgroup(s).