All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove Hayes ESP ioctls
@ 2010-06-17 16:00 Jeff Dike
  2010-06-17 17:28 ` Greg KH
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Dike @ 2010-06-17 16:00 UTC (permalink / raw)
  To: Alan Cox; +Cc: LKML

commit e6b14f5bc9803589241bc2aae1565fa0c5bd0ce1
Author: Jeff Dike <jdike@linux.intel.com>
Date:   Thu Jun 17 11:54:24 2010 -0400

    Remove Hayes ESP ioctls
    
    The Hayes ESP driver has been removed from the tree:
        commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
        ("tty: esp: remove broken driver")
    so its ioctls aren't needed any more.

diff --git a/include/asm-generic/ioctls.h b/include/asm-generic/ioctls.h
index a799e20..16218ac 100644
--- a/include/asm-generic/ioctls.h
+++ b/include/asm-generic/ioctls.h
@@ -86,16 +86,6 @@
 #define TIOCMIWAIT	0x545C	/* wait for a change on serial input line(s) */
 #define TIOCGICOUNT	0x545D	/* read serial port inline interrupt counts */
 
-/*
- * some architectures define FIOQSIZE as 0x545E, which is used for
- * TIOCGHAYESESP on others
- */
-#ifndef FIOQSIZE
-# define TIOCGHAYESESP	0x545E  /* Get Hayes ESP configuration */
-# define TIOCSHAYESESP	0x545F  /* Set Hayes ESP configuration */
-# define FIOQSIZE	0x5460
-#endif
-
 /* Used for packet mode */
 #define TIOCPKT_DATA		 0
 #define TIOCPKT_FLUSHREAD	 1

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 16:00 [PATCH] Remove Hayes ESP ioctls Jeff Dike
@ 2010-06-17 17:28 ` Greg KH
  2010-06-17 19:15   ` Jeff Dike
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2010-06-17 17:28 UTC (permalink / raw)
  To: Jeff Dike; +Cc: Alan Cox, LKML

On Thu, Jun 17, 2010 at 12:00:45PM -0400, Jeff Dike wrote:
> commit e6b14f5bc9803589241bc2aae1565fa0c5bd0ce1
> Author: Jeff Dike <jdike@linux.intel.com>
> Date:   Thu Jun 17 11:54:24 2010 -0400
> 
>     Remove Hayes ESP ioctls
>     
>     The Hayes ESP driver has been removed from the tree:
>         commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
>         ("tty: esp: remove broken driver")
>     so its ioctls aren't needed any more.
> 

You forgot to put a "Signed-off-by:" line in here.

Care to add it, and resend it to me?

thanks,

greg k-h

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 17:28 ` Greg KH
@ 2010-06-17 19:15   ` Jeff Dike
  2010-06-17 19:44     ` Arnd Bergmann
                       ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jeff Dike @ 2010-06-17 19:15 UTC (permalink / raw)
  To: Greg KH; +Cc: Alan Cox, LKML

On Thu, Jun 17, 2010 at 10:28:28AM -0700, Greg KH wrote:
> You forgot to put a "Signed-off-by:" line in here.
> 
> Care to add it, and resend it to me?

Oops...

commit e6b14f5bc9803589241bc2aae1565fa0c5bd0ce1
Author: Jeff Dike <jdike@linux.intel.com>
Date:   Thu Jun 17 11:54:24 2010 -0400

    Remove Hayes ESP ioctls
    
    The Hayes ESP driver has been removed from the tree:
        commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
        ("tty: esp: remove broken driver")
    so its ioctls aren't needed any more.

    Signed-off-by: Jeff Dike <jdike@linux.intel.com>

diff --git a/include/asm-generic/ioctls.h b/include/asm-generic/ioctls.h
index a799e20..16218ac 100644
--- a/include/asm-generic/ioctls.h
+++ b/include/asm-generic/ioctls.h
@@ -86,16 +86,6 @@
 #define TIOCMIWAIT	0x545C	/* wait for a change on serial input line(s) */
 #define TIOCGICOUNT	0x545D	/* read serial port inline interrupt counts */
 
-/*
- * some architectures define FIOQSIZE as 0x545E, which is used for
- * TIOCGHAYESESP on others
- */
-#ifndef FIOQSIZE
-# define TIOCGHAYESESP	0x545E  /* Get Hayes ESP configuration */
-# define TIOCSHAYESESP	0x545F  /* Set Hayes ESP configuration */
-# define FIOQSIZE	0x5460
-#endif
-
 /* Used for packet mode */
 #define TIOCPKT_DATA		 0
 #define TIOCPKT_FLUSHREAD	 1

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 19:15   ` Jeff Dike
@ 2010-06-17 19:44     ` Arnd Bergmann
  2010-06-17 20:03       ` Greg KH
  2010-06-17 20:09     ` Greg KH
  2010-06-17 20:18     ` patch tty-remove-hayes-esp-ioctls.patch added to gregkh-2.6 tree gregkh
  2 siblings, 1 reply; 12+ messages in thread
From: Arnd Bergmann @ 2010-06-17 19:44 UTC (permalink / raw)
  To: Jeff Dike; +Cc: Greg KH, Alan Cox, LKML

On Thursday 17 June 2010 21:15:16 Jeff Dike wrote:

>     The Hayes ESP driver has been removed from the tree:
>         commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
>         ("tty: esp: remove broken driver")
>     so its ioctls aren't needed any more.
> 
>     Signed-off-by: Jeff Dike <jdike@linux.intel.com>

There are still eight architectures that define the same values
in their private headers, those should probably get removed as well.

	Arnd

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 19:44     ` Arnd Bergmann
@ 2010-06-17 20:03       ` Greg KH
  0 siblings, 0 replies; 12+ messages in thread
From: Greg KH @ 2010-06-17 20:03 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Jeff Dike, Alan Cox, LKML

On Thu, Jun 17, 2010 at 09:44:31PM +0200, Arnd Bergmann wrote:
> On Thursday 17 June 2010 21:15:16 Jeff Dike wrote:
> 
> >     The Hayes ESP driver has been removed from the tree:
> >         commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
> >         ("tty: esp: remove broken driver")
> >     so its ioctls aren't needed any more.
> > 
> >     Signed-off-by: Jeff Dike <jdike@linux.intel.com>
> 
> There are still eight architectures that define the same values
> in their private headers, those should probably get removed as well.

Thanks for pointing that out, I'll go remove them as well.

greg k-h

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 19:15   ` Jeff Dike
  2010-06-17 19:44     ` Arnd Bergmann
@ 2010-06-17 20:09     ` Greg KH
  2010-06-17 20:14       ` Greg KH
  2010-06-17 20:18     ` patch tty-remove-hayes-esp-ioctls.patch added to gregkh-2.6 tree gregkh
  2 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2010-06-17 20:09 UTC (permalink / raw)
  To: Jeff Dike; +Cc: Alan Cox, LKML

On Thu, Jun 17, 2010 at 03:15:16PM -0400, Jeff Dike wrote:
> On Thu, Jun 17, 2010 at 10:28:28AM -0700, Greg KH wrote:
> > You forgot to put a "Signed-off-by:" line in here.
> > 
> > Care to add it, and resend it to me?
> 
> Oops...
> 
> commit e6b14f5bc9803589241bc2aae1565fa0c5bd0ce1
> Author: Jeff Dike <jdike@linux.intel.com>
> Date:   Thu Jun 17 11:54:24 2010 -0400
> 
>     Remove Hayes ESP ioctls
>     
>     The Hayes ESP driver has been removed from the tree:
>         commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
>         ("tty: esp: remove broken driver")
>     so its ioctls aren't needed any more.
> 
>     Signed-off-by: Jeff Dike <jdike@linux.intel.com>
> 
> diff --git a/include/asm-generic/ioctls.h b/include/asm-generic/ioctls.h
> index a799e20..16218ac 100644
> --- a/include/asm-generic/ioctls.h
> +++ b/include/asm-generic/ioctls.h
> @@ -86,16 +86,6 @@
>  #define TIOCMIWAIT	0x545C	/* wait for a change on serial input line(s) */
>  #define TIOCGICOUNT	0x545D	/* read serial port inline interrupt counts */
>  
> -/*
> - * some architectures define FIOQSIZE as 0x545E, which is used for
> - * TIOCGHAYESESP on others
> - */
> -#ifndef FIOQSIZE
> -# define TIOCGHAYESESP	0x545E  /* Get Hayes ESP configuration */
> -# define TIOCSHAYESESP	0x545F  /* Set Hayes ESP configuration */
> -# define FIOQSIZE	0x5460
> -#endif

Wait, don't we still need to define FIOQSIZE here if no one else has
done it yet?  With this patch I get a build error on fs/ioctl.c:
	fs/ioctl.c: In function ‘do_vfs_ioctl’:
	fs/ioctl.c:573:7: error: ‘FIOQSIZE’ undeclared (first use in this function)

So shouldn't we just remove the TIOCGHAYESESP and TIOCSHAYESESP values,
and only set FIOQSIZE if it's not set yet?

thanks,

greg k-h

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 20:09     ` Greg KH
@ 2010-06-17 20:14       ` Greg KH
  2010-06-17 20:41         ` Arnd Bergmann
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2010-06-17 20:14 UTC (permalink / raw)
  To: Jeff Dike; +Cc: Alan Cox, LKML

On Thu, Jun 17, 2010 at 01:09:38PM -0700, Greg KH wrote:
> On Thu, Jun 17, 2010 at 03:15:16PM -0400, Jeff Dike wrote:
> > On Thu, Jun 17, 2010 at 10:28:28AM -0700, Greg KH wrote:
> > > You forgot to put a "Signed-off-by:" line in here.
> > > 
> > > Care to add it, and resend it to me?
> > 
> > Oops...
> > 
> > commit e6b14f5bc9803589241bc2aae1565fa0c5bd0ce1
> > Author: Jeff Dike <jdike@linux.intel.com>
> > Date:   Thu Jun 17 11:54:24 2010 -0400
> > 
> >     Remove Hayes ESP ioctls
> >     
> >     The Hayes ESP driver has been removed from the tree:
> >         commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
> >         ("tty: esp: remove broken driver")
> >     so its ioctls aren't needed any more.
> > 
> >     Signed-off-by: Jeff Dike <jdike@linux.intel.com>
> > 
> > diff --git a/include/asm-generic/ioctls.h b/include/asm-generic/ioctls.h
> > index a799e20..16218ac 100644
> > --- a/include/asm-generic/ioctls.h
> > +++ b/include/asm-generic/ioctls.h
> > @@ -86,16 +86,6 @@
> >  #define TIOCMIWAIT	0x545C	/* wait for a change on serial input line(s) */
> >  #define TIOCGICOUNT	0x545D	/* read serial port inline interrupt counts */
> >  
> > -/*
> > - * some architectures define FIOQSIZE as 0x545E, which is used for
> > - * TIOCGHAYESESP on others
> > - */
> > -#ifndef FIOQSIZE
> > -# define TIOCGHAYESESP	0x545E  /* Get Hayes ESP configuration */
> > -# define TIOCSHAYESESP	0x545F  /* Set Hayes ESP configuration */
> > -# define FIOQSIZE	0x5460
> > -#endif
> 
> Wait, don't we still need to define FIOQSIZE here if no one else has
> done it yet?  With this patch I get a build error on fs/ioctl.c:
> 	fs/ioctl.c: In function ‘do_vfs_ioctl’:
> 	fs/ioctl.c:573:7: error: ‘FIOQSIZE’ undeclared (first use in this function)
> 
> So shouldn't we just remove the TIOCGHAYESESP and TIOCSHAYESESP values,
> and only set FIOQSIZE if it's not set yet?

How about something like the following:


 include/asm-generic/ioctls.h |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- a/include/asm-generic/ioctls.h
+++ b/include/asm-generic/ioctls.h
@@ -87,12 +87,10 @@
 #define TIOCGICOUNT	0x545D	/* read serial port inline interrupt counts */
 
 /*
- * some architectures define FIOQSIZE as 0x545E, which is used for
- * TIOCGHAYESESP on others
+ * Some arches already define FIOQSIZE due to a historical
+ * conflict with a Hayes modem-specific ioctl value.
  */
 #ifndef FIOQSIZE
-# define TIOCGHAYESESP	0x545E  /* Get Hayes ESP configuration */
-# define TIOCSHAYESESP	0x545F  /* Set Hayes ESP configuration */
 # define FIOQSIZE	0x5460
 #endif
 

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

* patch tty-remove-hayes-esp-ioctls.patch added to gregkh-2.6 tree
  2010-06-17 19:15   ` Jeff Dike
  2010-06-17 19:44     ` Arnd Bergmann
  2010-06-17 20:09     ` Greg KH
@ 2010-06-17 20:18     ` gregkh
  2 siblings, 0 replies; 12+ messages in thread
From: gregkh @ 2010-06-17 20:18 UTC (permalink / raw)
  To: jdike, alan, gregkh, greg, jdike, linux-kernel


This is a note to let you know that I've just added the patch titled

    Subject: tty: Remove Hayes ESP ioctls

to my gregkh-2.6 tree.  Its filename is

    tty-remove-hayes-esp-ioctls.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From jdike@addtoit.com  Thu Jun 17 13:03:30 2010
From: Jeff Dike <jdike@addtoit.com>
Date: Thu, 17 Jun 2010 15:15:16 -0400
Subject: tty: Remove Hayes ESP ioctls
To: Greg KH <greg@kroah.com>
Cc: Alan Cox <alan@linux.intel.com>, LKML <linux-kernel@vger.kernel.org>
Message-ID: <20100617191516.GA15963@c-98-229-117-200.hsd1.ma.comcast.net>
Content-Disposition: inline

Remove Hayes ESP ioctls

The Hayes ESP driver has been removed from the tree:
commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
("tty: esp: remove broken driver")
so its ioctls aren't needed any more.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 include/asm-generic/ioctls.h |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- a/include/asm-generic/ioctls.h
+++ b/include/asm-generic/ioctls.h
@@ -87,12 +87,10 @@
 #define TIOCGICOUNT	0x545D	/* read serial port inline interrupt counts */
 
 /*
- * some architectures define FIOQSIZE as 0x545E, which is used for
- * TIOCGHAYESESP on others
+ * Some arches already define FIOQSIZE due to a historical
+ * conflict with a Hayes modem-specific ioctl value.
  */
 #ifndef FIOQSIZE
-# define TIOCGHAYESESP	0x545E  /* Get Hayes ESP configuration */
-# define TIOCSHAYESESP	0x545F  /* Set Hayes ESP configuration */
 # define FIOQSIZE	0x5460
 #endif
 


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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 20:14       ` Greg KH
@ 2010-06-17 20:41         ` Arnd Bergmann
  2010-06-17 21:29           ` Jeff Dike
  0 siblings, 1 reply; 12+ messages in thread
From: Arnd Bergmann @ 2010-06-17 20:41 UTC (permalink / raw)
  To: Greg KH; +Cc: Jeff Dike, Alan Cox, LKML

On Thursday 17 June 2010 22:14:17 Greg KH wrote:
> --- a/include/asm-generic/ioctls.h
> +++ b/include/asm-generic/ioctls.h
> @@ -87,12 +87,10 @@
>  #define TIOCGICOUNT    0x545D  /* read serial port inline interrupt counts */
>  
>  /*
> - * some architectures define FIOQSIZE as 0x545E, which is used for
> - * TIOCGHAYESESP on others
> + * Some arches already define FIOQSIZE due to a historical
> + * conflict with a Hayes modem-specific ioctl value.
>   */
>  #ifndef FIOQSIZE
> -# define TIOCGHAYESESP 0x545E  /* Get Hayes ESP configuration */
> -# define TIOCSHAYESESP 0x545F  /* Set Hayes ESP configuration */
>  # define FIOQSIZE      0x5460
>  #endif

Yes, that looks right. I had introduced the #ifdef originally, but
did not look closely enough at the patch now.

	Arnd

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 20:41         ` Arnd Bergmann
@ 2010-06-17 21:29           ` Jeff Dike
  2010-06-17 22:03             ` Greg KH
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Dike @ 2010-06-17 21:29 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Greg KH, Alan Cox, LKML

On Thu, Jun 17, 2010 at 10:41:05PM +0200, Arnd Bergmann wrote:
> On Thursday 17 June 2010 22:14:17 Greg KH wrote:
> > --- a/include/asm-generic/ioctls.h
> > +++ b/include/asm-generic/ioctls.h
> > @@ -87,12 +87,10 @@
> >  #define TIOCGICOUNT    0x545D  /* read serial port inline interrupt counts */
> >  
> >  /*
> > - * some architectures define FIOQSIZE as 0x545E, which is used for
> > - * TIOCGHAYESESP on others
> > + * Some arches already define FIOQSIZE due to a historical
> > + * conflict with a Hayes modem-specific ioctl value.
> >   */
> >  #ifndef FIOQSIZE
> > -# define TIOCGHAYESESP 0x545E  /* Get Hayes ESP configuration */
> > -# define TIOCSHAYESESP 0x545F  /* Set Hayes ESP configuration */
> >  # define FIOQSIZE      0x5460
> >  #endif
> 
> Yes, that looks right. I had introduced the #ifdef originally, but
> did not look closely enough at the patch now.
> 
> 	Arnd
> 

That's better.  I had figured that the whole block was due to the driver,
and therefore could be nuked.

				Jeff


-- 
Work email - jdike at linux dot intel dot com

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 21:29           ` Jeff Dike
@ 2010-06-17 22:03             ` Greg KH
  2010-06-17 23:18               ` Jeff Dike
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2010-06-17 22:03 UTC (permalink / raw)
  To: Jeff Dike; +Cc: Arnd Bergmann, Alan Cox, LKML

On Thu, Jun 17, 2010 at 05:29:36PM -0400, Jeff Dike wrote:
> On Thu, Jun 17, 2010 at 10:41:05PM +0200, Arnd Bergmann wrote:
> > On Thursday 17 June 2010 22:14:17 Greg KH wrote:
> > > --- a/include/asm-generic/ioctls.h
> > > +++ b/include/asm-generic/ioctls.h
> > > @@ -87,12 +87,10 @@
> > >  #define TIOCGICOUNT    0x545D  /* read serial port inline interrupt counts */
> > >  
> > >  /*
> > > - * some architectures define FIOQSIZE as 0x545E, which is used for
> > > - * TIOCGHAYESESP on others
> > > + * Some arches already define FIOQSIZE due to a historical
> > > + * conflict with a Hayes modem-specific ioctl value.
> > >   */
> > >  #ifndef FIOQSIZE
> > > -# define TIOCGHAYESESP 0x545E  /* Get Hayes ESP configuration */
> > > -# define TIOCSHAYESESP 0x545F  /* Set Hayes ESP configuration */
> > >  # define FIOQSIZE      0x5460
> > >  #endif
> > 
> > Yes, that looks right. I had introduced the #ifdef originally, but
> > did not look closely enough at the patch now.
> > 
> > 	Arnd
> > 
> 
> That's better.  I had figured that the whole block was due to the driver,
> and therefore could be nuked.

Next time you might want to build your patches :)

thanks,

greg k-h

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

* Re: [PATCH] Remove Hayes ESP ioctls
  2010-06-17 22:03             ` Greg KH
@ 2010-06-17 23:18               ` Jeff Dike
  0 siblings, 0 replies; 12+ messages in thread
From: Jeff Dike @ 2010-06-17 23:18 UTC (permalink / raw)
  To: Greg KH; +Cc: Arnd Bergmann, Alan Cox, LKML

On Thu, Jun 17, 2010 at 03:03:25PM -0700, Greg KH wrote:
> Next time you might want to build your patches :)

Yup, sorry - my bad.

		Jeff

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

end of thread, other threads:[~2010-06-17 23:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-17 16:00 [PATCH] Remove Hayes ESP ioctls Jeff Dike
2010-06-17 17:28 ` Greg KH
2010-06-17 19:15   ` Jeff Dike
2010-06-17 19:44     ` Arnd Bergmann
2010-06-17 20:03       ` Greg KH
2010-06-17 20:09     ` Greg KH
2010-06-17 20:14       ` Greg KH
2010-06-17 20:41         ` Arnd Bergmann
2010-06-17 21:29           ` Jeff Dike
2010-06-17 22:03             ` Greg KH
2010-06-17 23:18               ` Jeff Dike
2010-06-17 20:18     ` patch tty-remove-hayes-esp-ioctls.patch added to gregkh-2.6 tree gregkh

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.