[PATCH] PPC64: 32bit wrapper for ioctls.

Arnd Bergmann arnd at arndb.de
Fri Jan 14 20:23:07 EST 2005


On Dunnersdag 13 Januar 2005 19:46, Mike Wolf wrote:
> Hi Paul,
>   The patch adds some 32bit wrappers for 2 ioctls that Java needs.
> Assuming this doesn't generate a round of discussion, please
> forward upstream to akpm/torvalds.

Why add them to arch/ppc64? These don't look architecture specific, so they
should go into include/linux/compat_ioctl.h. 

> --- linus-0112.orig/arch/ppc64/kernel/ioctl32.c 2005-01-13 10:35:10.165539000 -0600
> +++ linus-0112/arch/ppc64/kernel/ioctl32.c      2005-01-13 10:51:43.450433277 -0600
> @@ -43,6 +43,8 @@
>  COMPATIBLE_IOCTL(TIOCSTART)
>  COMPATIBLE_IOCTL(TIOCSTOP)
>  COMPATIBLE_IOCTL(TIOCSLTC)
> +COMPATIBLE_IOCTL(TIOCMIWAIT)

Note that TIOCMIWAIT is not COMPATIBLE_IOCTL, but ULONG_IOCTL. It doesn't make
a difference for ppc64, but if you add it to the generic file that is needed for
s390x.

	Arnd <><


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20050114/54e8467a/attachment.pgp 


More information about the Linuxppc64-dev mailing list