* [PATCH] disable legacy floppy related ioctl32s
@ 2003-09-30 20:16 Arun Sharma
2003-09-30 20:55 ` Bjorn Helgaas
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Arun Sharma @ 2003-09-30 20:16 UTC (permalink / raw)
To: linux-ia64
[-- 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)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] disable legacy floppy related ioctl32s
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
@ 2003-09-30 20:55 ` Bjorn Helgaas
2003-09-30 21:01 ` Randy.Dunlap
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2003-09-30 20:55 UTC (permalink / raw)
To: linux-ia64
On Tuesday 30 September 2003 2:16 pm, Arun Sharma wrote:
> Since we don't support legacy floppy devices on ia64, this patch disables the corresponding ioctl32.
-#ifndef CONFIG_ARCH_S390
+#if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_IA64)
/* 0x02 -- Floppy ioctls */
COMPATIBLE_IOCTL(FDMSGON)
COMPATIBLE_IOCTL(FDMSGOFF)
Could this be done with config symbols somehow, i.e., CONFIG_BLK_DEV_FD?
It seems sort of ugly to encode the knowledge about which platforms
support legacy floppy both in Kconfig and in the actual source.
BTW, it looks like one can still select legacy floppy support on ia64:
config BLK_DEV_FD
tristate "Normal floppy disk support"
depends on !X86_PC9800 && !ARCH_S390
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] disable legacy floppy related ioctl32s
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
2003-09-30 20:55 ` Bjorn Helgaas
@ 2003-09-30 21:01 ` Randy.Dunlap
2003-09-30 22:10 ` Bjorn Helgaas
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Randy.Dunlap @ 2003-09-30 21:01 UTC (permalink / raw)
To: linux-ia64
On Tue, 30 Sep 2003 14:55:00 -0600 Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
| On Tuesday 30 September 2003 2:16 pm, Arun Sharma wrote:
| > Since we don't support legacy floppy devices on ia64, this patch disables the corresponding ioctl32.
|
| -#ifndef CONFIG_ARCH_S390
| +#if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_IA64)
| /* 0x02 -- Floppy ioctls */
| COMPATIBLE_IOCTL(FDMSGON)
| COMPATIBLE_IOCTL(FDMSGOFF)
|
| Could this be done with config symbols somehow, i.e., CONFIG_BLK_DEV_FD?
| It seems sort of ugly to encode the knowledge about which platforms
| support legacy floppy both in Kconfig and in the actual source.
|
| BTW, it looks like one can still select legacy floppy support on ia64:
|
| config BLK_DEV_FD
| tristate "Normal floppy disk support"
| depends on !X86_PC9800 && !ARCH_S390
Yes, I submitted a patch for that (and others), but it was rejected
by reasoning that we can't and don't want to keep up with fixing
all of these...
--
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] disable legacy floppy related ioctl32s
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
2003-09-30 20:55 ` Bjorn Helgaas
2003-09-30 21:01 ` Randy.Dunlap
@ 2003-09-30 22:10 ` Bjorn Helgaas
2003-09-30 22:14 ` Randy.Dunlap
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2003-09-30 22:10 UTC (permalink / raw)
To: linux-ia64
On Tuesday 30 September 2003 3:01 pm, Randy.Dunlap wrote:
> On Tue, 30 Sep 2003 14:55:00 -0600 Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
> | BTW, it looks like one can still select legacy floppy support on ia64:
> |
> | config BLK_DEV_FD
> | tristate "Normal floppy disk support"
> | depends on !X86_PC9800 && !ARCH_S390
>
> Yes, I submitted a patch for that (and others), but it was rejected
> by reasoning that we can't and don't want to keep up with fixing
> all of these...
Heh. Your patch (http://www.ussg.iu.edu/hypermail/linux/kernel/0308.3/0320.html)
contained:
config BLK_DEV_FD
tristate "Normal floppy disk support"
- depends on !X86_PC9800
+ depends on !X86_PC9800 && !IA64
so obviously somebody decided it was reasonable to do it for s390, but
not for ia64 :-) I didn't see the rejection rationale on the list, but
it's hard enough to build a working .config without distractions like
being asked about drivers that can't possibly work (and probably don't
even compile) on my architecture.
Bjorn
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] disable legacy floppy related ioctl32s
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
` (2 preceding siblings ...)
2003-09-30 22:10 ` Bjorn Helgaas
@ 2003-09-30 22:14 ` Randy.Dunlap
2003-09-30 22:18 ` Arun Sharma
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Randy.Dunlap @ 2003-09-30 22:14 UTC (permalink / raw)
To: linux-ia64
On Tue, 30 Sep 2003 16:10:23 -0600 Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
| On Tuesday 30 September 2003 3:01 pm, Randy.Dunlap wrote:
| > On Tue, 30 Sep 2003 14:55:00 -0600 Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
| > | BTW, it looks like one can still select legacy floppy support on ia64:
| > |
| > | config BLK_DEV_FD
| > | tristate "Normal floppy disk support"
| > | depends on !X86_PC9800 && !ARCH_S390
| >
| > Yes, I submitted a patch for that (and others), but it was rejected
| > by reasoning that we can't and don't want to keep up with fixing
| > all of these...
|
| Heh. Your patch (http://www.ussg.iu.edu/hypermail/linux/kernel/0308.3/0320.html)
| contained:
|
| config BLK_DEV_FD
| tristate "Normal floppy disk support"
| - depends on !X86_PC9800
| + depends on !X86_PC9800 && !IA64
|
| so obviously somebody decided it was reasonable to do it for s390, but
| not for ia64 :-) I didn't see the rejection rationale on the list, but
| it's hard enough to build a working .config without distractions like
| being asked about drivers that can't possibly work (and probably don't
| even compile) on my architecture.
Yes, it was a private rejection.
Yes, one does not always get the same answer when asked multiple times.
I'm all for it, but some people weren't.
--
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] disable legacy floppy related ioctl32s
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
` (3 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: Arun Sharma @ 2003-09-30 22:18 UTC (permalink / raw)
To: linux-ia64
Bjorn Helgaas wrote:
> Heh. Your patch (http://www.ussg.iu.edu/hypermail/linux/kernel/0308.3/0320.html)
> contained:
>
> config BLK_DEV_FD
> tristate "Normal floppy disk support"
> - depends on !X86_PC9800
> + depends on !X86_PC9800 && !IA64
>
> so obviously somebody decided it was reasonable to do it for s390, but
> not for ia64 :-) I didn't see the rejection rationale on the list, but
> it's hard enough to build a working .config without distractions like
> being asked about drivers that can't possibly work (and probably don't
> even compile) on my architecture.
There's some discussion here too:
http://marc.theaimsgroup.com/?t\x106015010700002&r=1&w=2
depends on ISA || M68K || SPARC64
seems to be what was suggested in the thread, but I didn't see a patch. I also agree that the check should be in one place (KConfig). Will send a new patch.
-Arun
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] disable legacy floppy related ioctl32s
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
` (4 preceding siblings ...)
2003-09-30 22:18 ` Arun Sharma
@ 2003-10-01 0:01 ` Arun Sharma
2003-10-01 1:19 ` Matthew Wilcox
6 siblings, 0 replies; 8+ messages in thread
From: Arun Sharma @ 2003-10-01 0:01 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 350 bytes --]
Arun Sharma wrote:
> http://marc.theaimsgroup.com/?t=106015010700002&r=1&w=2
>
> depends on ISA || M68K || SPARC64
>
> seems to be what was suggested in the thread, but I didn't see a patch.
> I also agree that the check should be in one place (KConfig). Will send
> a new patch.
Here's the new patch. It should probably go to LKML now.
-Arun
[-- Attachment #2: ioctl32-floppy.patch --]
[-- Type: text/plain, Size: 995 bytes --]
Index: linux-2.6/drivers/block/Kconfig
===================================================================
--- linux-2.6/drivers/block/Kconfig (revision 13274)
+++ linux-2.6/drivers/block/Kconfig (working copy)
@@ -6,7 +6,7 @@
config BLK_DEV_FD
tristate "Normal floppy disk support"
- depends on !X86_PC9800
+ depends on ISA || M68K || SPARC64
---help---
If you want to use the floppy disk drive(s) of your PC under Linux,
say Y. Information about this driver, especially important for IBM
Index: linux-2.6/include/linux/compat_ioctl.h
===================================================================
--- linux-2.6/include/linux/compat_ioctl.h (revision 13274)
+++ linux-2.6/include/linux/compat_ioctl.h (working copy)
@@ -68,7 +68,7 @@
COMPATIBLE_IOCTL(HDIO_DRIVE_CMD)
COMPATIBLE_IOCTL(HDIO_SET_PIO_MODE)
COMPATIBLE_IOCTL(HDIO_SET_NICE)
-#ifndef CONFIG_ARCH_S390
+#ifdef CONFIG_BLK_DEV_FD
/* 0x02 -- Floppy ioctls */
COMPATIBLE_IOCTL(FDMSGON)
COMPATIBLE_IOCTL(FDMSGOFF)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] disable legacy floppy related ioctl32s
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
` (5 preceding siblings ...)
2003-10-01 0:01 ` Arun Sharma
@ 2003-10-01 1:19 ` Matthew Wilcox
6 siblings, 0 replies; 8+ messages in thread
From: Matthew Wilcox @ 2003-10-01 1:19 UTC (permalink / raw)
To: linux-ia64
On Tue, Sep 30, 2003 at 05:01:31PM -0700, Arun Sharma wrote:
> Here's the new patch. It should probably go to LKML now.
> config BLK_DEV_FD
> tristate "Normal floppy disk support"
> - depends on !X86_PC9800
> + depends on ISA || M68K || SPARC64
Your tree is out of date. Latest 2.6 has:
depends on !X86_PC9800 && !ARCH_S390
I'm not sure that ISA is a great symbol to depend on for this.
"It works, but only by coincidence", IMO.
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-10-01 1:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-30 20:16 [PATCH] disable legacy floppy related ioctl32s Arun Sharma
2003-09-30 20:55 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox