Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

compat_ioctl: remove HIDIO translation

The two drivers implementing these both gained proper compat_ioctl()
handlers a long time ago with commits bb6c8d8fa9b5 ("HID: hiddev:
Add 32bit ioctl compatibilty") and ae5e49c79c05 ("HID: hidraw: add
compatibility ioctl() for 32-bit applications."), so the lists in
fs/compat_ioctl.c are no longer used.

It appears that the lists were also incomplete, so the translation
didn't actually work correctly when it was still in use.

Remove them as cleanup.

Cc: linux-bluetooth@vger.kernel.org
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

-17
-17
fs/compat_ioctl.c
··· 640 640 COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_IO) 641 641 COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_MEM) 642 642 COMPATIBLE_IOCTL(PCIIOC_WRITE_COMBINE) 643 - /* hiddev */ 644 - COMPATIBLE_IOCTL(HIDIOCGVERSION) 645 - COMPATIBLE_IOCTL(HIDIOCAPPLICATION) 646 - COMPATIBLE_IOCTL(HIDIOCGDEVINFO) 647 - COMPATIBLE_IOCTL(HIDIOCGSTRING) 648 - COMPATIBLE_IOCTL(HIDIOCINITREPORT) 649 - COMPATIBLE_IOCTL(HIDIOCGREPORT) 650 - COMPATIBLE_IOCTL(HIDIOCSREPORT) 651 - COMPATIBLE_IOCTL(HIDIOCGREPORTINFO) 652 - COMPATIBLE_IOCTL(HIDIOCGFIELDINFO) 653 - COMPATIBLE_IOCTL(HIDIOCGUSAGE) 654 - COMPATIBLE_IOCTL(HIDIOCSUSAGE) 655 - COMPATIBLE_IOCTL(HIDIOCGUCODE) 656 - COMPATIBLE_IOCTL(HIDIOCGFLAG) 657 - COMPATIBLE_IOCTL(HIDIOCSFLAG) 658 - COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINDEX) 659 - COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINFO) 660 643 /* joystick */ 661 644 COMPATIBLE_IOCTL(JSIOCGVERSION) 662 645 COMPATIBLE_IOCTL(JSIOCGAXES)