]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xtensa: replace IOCTL code definitions with constants
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 19 Jul 2014 23:38:53 +0000 (03:38 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 14 Aug 2014 07:59:13 +0000 (11:59 +0400)
commitf61bf8e7d19e0a3456a7a9ed97c399e4353698dc
tree41d997e58e850270f4892255af3c495de5d0f0c2
parentad4a96b418aceed3f86882e7619bdccaf04c9ce0
xtensa: replace IOCTL code definitions with constants

This fixes userspace code that builds on other architectures but fails
on xtensa due to references to structures that other architectures don't
refer to. E.g. this fixes the following issue with python-2.7.8:

  python-2.7.8/Modules/termios.c:861:25: error: invalid application
     of 'sizeof' to incomplete type 'struct serial_multiport_struct'
     {"TIOCSERGETMULTI", TIOCSERGETMULTI},
  python-2.7.8/Modules/termios.c:870:25: error: invalid application
     of 'sizeof' to incomplete type 'struct serial_multiport_struct'
     {"TIOCSERSETMULTI", TIOCSERSETMULTI},
  python-2.7.8/Modules/termios.c:900:24: error: invalid application
     of 'sizeof' to incomplete type 'struct tty_struct'
     {"TIOCTTYGSTRUCT", TIOCTTYGSTRUCT},

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/uapi/asm/ioctls.h