linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Re: [PATCH] remove duplicated ioctl entries in compat_ioctl.c
@ 2007-07-27 17:13 Jean Tourrilhes
  2007-07-27 19:10 ` John W. Linville
  0 siblings, 1 reply; 17+ messages in thread
From: Jean Tourrilhes @ 2007-07-27 17:13 UTC (permalink / raw)
  To: linux-wireless, John W. Linville

"John W. Linville" wrote :
> On Mon, Jul 09, 2007 at 07:54:39PM +0900, Masakazu Mokuno wrote:
> > This patch removes some duplicated wireless ioctl entries in the array
> > 'struct ioctl_trans ioctl_start[]' of fs/compat_ioctl.c
> > 
> > These entries are registered twice like:
> > 
> > 	COMPATIBLE_IOCTL(SIOCGIWPRIV)
> > 
> > and
> > 
> > 	HANDLE_IOCTL(SIOCGIWPRIV, do_wireless_ioctl)
> > 
> > 
> > Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
> > ---
> >  fs/compat_ioctl.c |    3 ---
> >  1 file changed, 3 deletions(-)
> > 
> > --- a/fs/compat_ioctl.c
> > +++ b/fs/compat_ioctl.c
> > @@ -3156,12 +3156,9 @@ COMPATIBLE_IOCTL(SIOCSIWSENS)
> >  COMPATIBLE_IOCTL(SIOCGIWSENS)
> >  COMPATIBLE_IOCTL(SIOCSIWRANGE)
> >  COMPATIBLE_IOCTL(SIOCSIWPRIV)
> > -COMPATIBLE_IOCTL(SIOCGIWPRIV)
> >  COMPATIBLE_IOCTL(SIOCSIWSTATS)
> > -COMPATIBLE_IOCTL(SIOCGIWSTATS)
> >  COMPATIBLE_IOCTL(SIOCSIWAP)
> >  COMPATIBLE_IOCTL(SIOCGIWAP)
> > -COMPATIBLE_IOCTL(SIOCSIWSCAN)
> >  COMPATIBLE_IOCTL(SIOCSIWRATE)
> >  COMPATIBLE_IOCTL(SIOCGIWRATE)
> >  COMPATIBLE_IOCTL(SIOCSIWRTS)
> 
> As I read the code in compat_ioctl.c, it looks to me like the
> COMPATIBLE_IOCTL definitions are the ones that are actually being
> used today.  Do you agree?

	Actually, you are wrong, and Masakazu is right. All those
ioctls contains a pointer and should go through the pointer
conversion.
	The reason why Masakazu sent that patch is that he actually
stumbled on the problem and tested it.

> Given the...stability...of the wireless extensions API, if we are going
> to remove one or the other of these not-quite-duplicate definitions,
> shouldn't we remove the HANDLE_IOCTL defintions instead?

	I don't understand, you are in favor of breaking the API ?

	Regards,

	Jean

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [PATCH] remove duplicated ioctl entries in compat_ioctl.c
@ 2007-07-09 10:54 Masakazu Mokuno
  2007-07-09 11:10 ` Holger Schurig
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Masakazu Mokuno @ 2007-07-09 10:54 UTC (permalink / raw)
  To: linux-wireless; +Cc: Geert Uytterhoeven, geoffrey.levand

This patch removes some duplicated wireless ioctl entries in the array
'struct ioctl_trans ioctl_start[]' of fs/compat_ioctl.c

These entries are registered twice like:

	COMPATIBLE_IOCTL(SIOCGIWPRIV)

and

	HANDLE_IOCTL(SIOCGIWPRIV, do_wireless_ioctl)


Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
---
 fs/compat_ioctl.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -3156,12 +3156,9 @@ COMPATIBLE_IOCTL(SIOCSIWSENS)
 COMPATIBLE_IOCTL(SIOCGIWSENS)
 COMPATIBLE_IOCTL(SIOCSIWRANGE)
 COMPATIBLE_IOCTL(SIOCSIWPRIV)
-COMPATIBLE_IOCTL(SIOCGIWPRIV)
 COMPATIBLE_IOCTL(SIOCSIWSTATS)
-COMPATIBLE_IOCTL(SIOCGIWSTATS)
 COMPATIBLE_IOCTL(SIOCSIWAP)
 COMPATIBLE_IOCTL(SIOCGIWAP)
-COMPATIBLE_IOCTL(SIOCSIWSCAN)
 COMPATIBLE_IOCTL(SIOCSIWRATE)
 COMPATIBLE_IOCTL(SIOCGIWRATE)
 COMPATIBLE_IOCTL(SIOCSIWRTS)


--
Masakazu MOKUNO


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

end of thread, other threads:[~2007-09-12 14:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 17:13 Re: [PATCH] remove duplicated ioctl entries in compat_ioctl.c Jean Tourrilhes
2007-07-27 19:10 ` John W. Linville
2007-07-27 21:58   ` Jean Tourrilhes
2007-07-30 12:02     ` Masakazu Mokuno
2007-07-30 14:47       ` John W. Linville
2007-07-30 18:37         ` Jean Tourrilhes
2007-07-31  4:45           ` Masakazu Mokuno
2007-07-31 16:55             ` Jean Tourrilhes
2007-08-07  7:41         ` Masakazu Mokuno
2007-08-07 17:51           ` Jean Tourrilhes
2007-09-12  4:36           ` Masakazu Mokuno
2007-09-12 13:43             ` John W. Linville
  -- strict thread matches above, loose matches on Subject: below --
2007-07-09 10:54 Masakazu Mokuno
2007-07-09 11:10 ` Holger Schurig
2007-07-09 11:13 ` Holger Schurig
2007-07-26 18:50 ` John W. Linville
2007-07-27  1:35   ` Masakazu Mokuno

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).