Re: [patch] use __u32 rather than u32 in userspace ioctls in usbdevice_fs.h

Oleg Verych <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Palacky University in Olomouc, experimental physics department.
Message-ID <[email protected]>
> From: Mike Frysinger <[email protected]>
> Newsgroups: gmane.linux.usb.devel,gmane.linux.kernel
> Subject: [patch] use __u32 rather than u32 in userspace ioctls in usbdevice_fs.h
> Date: Sun, 28 Jan 2007 07:23:57 -0500
> Organization: wh0rd.org
[]
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
> 	filename="linux-use-__-types-in-usbdevice-fs-header.patch"
>
> Use __u32 rather than u32 in userspace ioctl defines.
>
> Signed-off-by: Mike Frysinger <[email protected]>

Acked-by: Oleg Verych <[email protected]>

unless usbfs isn't *special userspace* ;-p

> --- a/include/linux/usbdevice_fs.h
> +++ b/include/linux/usbdevice_fs.h
> @@ -159,9 +159,9 @@ struct usbdevfs_ioctl32 {
>  #define USBDEVFS_SUBMITURB32       _IOR('U', 10, struct usbdevfs_urb32)
>  #define USBDEVFS_DISCARDURB        _IO('U', 11)
>  #define USBDEVFS_REAPURB           _IOW('U', 12, void *)
> -#define USBDEVFS_REAPURB32         _IOW('U', 12, u32)
> +#define USBDEVFS_REAPURB32         _IOW('U', 12, __u32)
>  #define USBDEVFS_REAPURBNDELAY     _IOW('U', 13, void *)
> -#define USBDEVFS_REAPURBNDELAY32   _IOW('U', 13, u32)
> +#define USBDEVFS_REAPURBNDELAY32   _IOW('U', 13, __u32)
>  #define USBDEVFS_DISCSIGNAL        _IOR('U', 14, struct usbdevfs_disconnectsignal)
>  #define USBDEVFS_CLAIMINTERFACE    _IOR('U', 15, unsigned int)
>  #define USBDEVFS_RELEASEINTERFACE  _IOR('U', 16, unsigned int)

But i don't understand using "unsigned int". If you use u32 use it,
convention for userspace is __u32, why this?
____


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.