All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arun Sharma <arun.sharma@intel.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] disable legacy floppy related ioctl32s
Date: Tue, 30 Sep 2003 20:16:47 +0000	[thread overview]
Message-ID: <marc-linux-ia64-106495318021597@msgid-missing> (raw)

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


Since we don't support legacy floppy devices on ia64, this patch disables the corresponding ioctl32.

	-Arun


[-- Attachment #2: ioctl32.txt --]
[-- Type: text/plain, Size: 1228 bytes --]

--- ia64-linux2.6.0/include/linux/compat_ioctl.h	Tue Sep 23 18:53:29 2003
+++ ia64-linux2.6.0-patch/include/linux/compat_ioctl.h	Tue Sep 23 18:53:55 2003
@@ -68,7 +68,7 @@
 COMPATIBLE_IOCTL(HDIO_DRIVE_CMD)
 COMPATIBLE_IOCTL(HDIO_SET_PIO_MODE)
 COMPATIBLE_IOCTL(HDIO_SET_NICE)
-#ifndef CONFIG_ARCH_S390
+#if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_IA64)
 /* 0x02 -- Floppy ioctls */
 COMPATIBLE_IOCTL(FDMSGON)
 COMPATIBLE_IOCTL(FDMSGOFF)
--- ia64-linux2.6.0/fs/compat_ioctl.c	Tue Sep 23 18:52:22 2003
+++ ia64-linux2.6.0-patch/fs/compat_ioctl.c	Tue Sep 23 18:52:46 2003
@@ -2936,6 +2936,7 @@
 HANDLE_IOCTL(HDIO_GET_MULTCOUNT, hdio_ioctl_trans)
 HANDLE_IOCTL(HDIO_GET_NOWERR, hdio_ioctl_trans)
 HANDLE_IOCTL(HDIO_GET_NICE, hdio_ioctl_trans)
+#if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_IA64)
 HANDLE_IOCTL(FDSETPRM32, fd_ioctl_trans)
 HANDLE_IOCTL(FDDEFPRM32, fd_ioctl_trans)
 HANDLE_IOCTL(FDGETPRM32, fd_ioctl_trans)
@@ -2945,6 +2946,7 @@
 HANDLE_IOCTL(FDPOLLDRVSTAT32, fd_ioctl_trans)
 HANDLE_IOCTL(FDGETFDCSTAT32, fd_ioctl_trans)
 HANDLE_IOCTL(FDWERRORGET32, fd_ioctl_trans)
+#endif
 HANDLE_IOCTL(SG_IO,sg_ioctl_trans)
 HANDLE_IOCTL(PPPIOCGIDLE32, ppp_ioctl_trans)
 HANDLE_IOCTL(PPPIOCSCOMPRESS32, ppp_ioctl_trans)

             reply	other threads:[~2003-09-30 20:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-30 20:16 Arun Sharma [this message]
2003-09-30 20:55 ` [PATCH] disable legacy floppy related ioctl32s Bjorn Helgaas
2003-09-30 21:01 ` Randy.Dunlap
2003-09-30 22:10 ` Bjorn Helgaas
2003-09-30 22:14 ` Randy.Dunlap
2003-09-30 22:18 ` Arun Sharma
2003-10-01  0:01 ` Arun Sharma
2003-10-01  1:19 ` Matthew Wilcox

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=marc-linux-ia64-106495318021597@msgid-missing \
    --to=arun.sharma@intel.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.