mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 10/12] s390: remove ioctl32 from dasdcmb.
@ 2005-04-22 15:02 Martin Schwidefsky
  2005-04-22 19:05 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Schwidefsky @ 2005-04-22 15:02 UTC (permalink / raw)
  To: akpm, linux-kernel

[patch 10/12] s390: remove ioctl32 from dasdcmb.

From: Cornelia Huck <cohuck@de.ibm.com>

The ioctl32_conversion routines will be deprecated: Remove them from
dasd_cmb and handle the three cmb ioctls like all other dasd ioctls.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

diffstat:
 arch/s390/kernel/compat_ioctl.c |    7 ++++++-
 drivers/s390/block/dasd_cmb.c   |   19 ++-----------------
 include/asm-s390/cmb.h          |    2 +-
 3 files changed, 9 insertions(+), 19 deletions(-)

diff -urpN linux-2.6/arch/s390/kernel/compat_ioctl.c linux-2.6-patched/arch/s390/kernel/compat_ioctl.c
--- linux-2.6/arch/s390/kernel/compat_ioctl.c	2005-04-22 15:44:44.000000000 +0200
+++ linux-2.6-patched/arch/s390/kernel/compat_ioctl.c	2005-04-22 15:45:06.000000000 +0200
@@ -16,6 +16,7 @@
 #define CODE
 #include "../../../fs/compat_ioctl.c"
 #include <asm/dasd.h>
+#include <asm/cmb.h>
 #include <asm/tape390.h>
 
 static int do_ioctl32_pointer(unsigned int fd, unsigned int cmd,
@@ -58,7 +59,11 @@ COMPATIBLE_IOCTL(BIODASDPRRD)
 COMPATIBLE_IOCTL(BIODASDPSRD)
 COMPATIBLE_IOCTL(BIODASDGATTR)
 COMPATIBLE_IOCTL(BIODASDSATTR)
-
+#if defined(CONFIG_DASD_CMB) || defined(CONFIG_DASD_CMB_MODULE)
+COMPATIBLE_IOCTL(BIODASDCMFENABLE)
+COMPATIBLE_IOCTL(BIODASDCMFDISABLE)
+COMPATIBLE_IOCTL(BIODASDREADALLCMB)
+#endif
 #endif
 
 #if defined(CONFIG_S390_TAPE) || defined(CONFIG_S390_TAPE_MODULE)
diff -urpN linux-2.6/drivers/s390/block/dasd_cmb.c linux-2.6-patched/drivers/s390/block/dasd_cmb.c
--- linux-2.6/drivers/s390/block/dasd_cmb.c	2005-03-02 08:38:10.000000000 +0100
+++ linux-2.6-patched/drivers/s390/block/dasd_cmb.c	2005-04-22 15:45:06.000000000 +0200
@@ -1,5 +1,5 @@
 /*
- * linux/drivers/s390/block/dasd_cmb.c ($Revision: 1.6 $)
+ * linux/drivers/s390/block/dasd_cmb.c ($Revision: 1.9 $)
  *
  * Linux on zSeries Channel Measurement Facility support
  *  (dasd device driver interface)
@@ -23,7 +23,6 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 #include <linux/init.h>
-#include <linux/ioctl32.h>
 #include <linux/module.h>
 #include <asm/ccwdev.h>
 #include <asm/cmb.h>
@@ -84,27 +83,13 @@ dasd_ioctl_readall_cmb(struct block_devi
 static inline int
 ioctl_reg(unsigned int no, dasd_ioctl_fn_t handler)
 {
-	int ret;
-	ret = dasd_ioctl_no_register(THIS_MODULE, no, handler);
-#ifdef CONFIG_COMPAT
-	if (ret)
-		return ret;
-
-	ret = register_ioctl32_conversion(no, NULL);
-	if (ret)
-		dasd_ioctl_no_unregister(THIS_MODULE, no, handler);
-#endif
-	return ret;
+	return dasd_ioctl_no_register(THIS_MODULE, no, handler);
 }
 
 static inline void
 ioctl_unreg(unsigned int no, dasd_ioctl_fn_t handler)
 {
 	dasd_ioctl_no_unregister(THIS_MODULE, no, handler);
-#ifdef CONFIG_COMPAT
-	unregister_ioctl32_conversion(no);
-#endif
-
 }
 
 static void
diff -urpN linux-2.6/include/asm-s390/cmb.h linux-2.6-patched/include/asm-s390/cmb.h
--- linux-2.6/include/asm-s390/cmb.h	2005-03-02 08:38:37.000000000 +0100
+++ linux-2.6-patched/include/asm-s390/cmb.h	2005-04-22 15:45:06.000000000 +0200
@@ -52,7 +52,7 @@ struct cmbdata {
 #define BIODASDREADALLCMB	_IOWR(DASD_IOCTL_LETTER,33,struct cmbdata)
 
 #ifdef __KERNEL__
-
+struct ccw_device;
 /**
  * enable_cmf() - switch on the channel measurement for a specific device
  *  @cdev:	The ccw device to be enabled

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 10/12] s390: remove ioctl32 from dasdcmb.
  2005-04-22 15:02 [patch 10/12] s390: remove ioctl32 from dasdcmb Martin Schwidefsky
@ 2005-04-22 19:05 ` Christoph Hellwig
  2005-04-25  7:42   ` Martin Schwidefsky
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2005-04-22 19:05 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: akpm, linux-kernel

On Fri, Apr 22, 2005 at 05:02:38PM +0200, Martin Schwidefsky wrote:
> +#if defined(CONFIG_DASD_CMB) || defined(CONFIG_DASD_CMB_MODULE)
> +COMPATIBLE_IOCTL(BIODASDCMFENABLE)
> +COMPATIBLE_IOCTL(BIODASDCMFDISABLE)
> +COMPATIBLE_IOCTL(BIODASDREADALLCMB)
> +#endif

I don't think that there should be ifdefs for COMPATIBLE_IOCTL entries.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 10/12] s390: remove ioctl32 from dasdcmb.
  2005-04-22 19:05 ` Christoph Hellwig
@ 2005-04-25  7:42   ` Martin Schwidefsky
  2005-04-25 13:23     ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Schwidefsky @ 2005-04-25  7:42 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: akpm, linux-kernel

Christoph Hellwig <hch@infradead.org> wrote on 04/22/2005 09:05:27 PM:

> On Fri, Apr 22, 2005 at 05:02:38PM +0200, Martin Schwidefsky wrote:
> > +#if defined(CONFIG_DASD_CMB) || defined(CONFIG_DASD_CMB_MODULE)
> > +COMPATIBLE_IOCTL(BIODASDCMFENABLE)
> > +COMPATIBLE_IOCTL(BIODASDCMFDISABLE)
> > +COMPATIBLE_IOCTL(BIODASDREADALLCMB)
> > +#endif
>
> I don't think that there should be ifdefs for COMPATIBLE_IOCTL entries.
>

Then it stand to reason to remove ALL the ifdefs in arch/s390/kernel/compat_ioctl.c

blue skies,
   Martin

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 10/12] s390: remove ioctl32 from dasdcmb.
  2005-04-25  7:42   ` Martin Schwidefsky
@ 2005-04-25 13:23     ` Christoph Hellwig
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2005-04-25 13:23 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: akpm, linux-kernel

On Mon, Apr 25, 2005 at 09:42:17AM +0200, Martin Schwidefsky wrote:
> > I don't think that there should be ifdefs for COMPATIBLE_IOCTL entries.
> >
> 
> Then it stand to reason to remove ALL the ifdefs in arch/s390/kernel/compat_ioctl.c

makes sense

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-25 13:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-22 15:02 [patch 10/12] s390: remove ioctl32 from dasdcmb Martin Schwidefsky
2005-04-22 19:05 ` Christoph Hellwig
2005-04-25  7:42   ` Martin Schwidefsky
2005-04-25 13:23     ` Christoph Hellwig

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®