For some interesting historic reasons that are not at all clear to me,we seem to have two implementations of the ATM ioctl compatibilitylayer in the kernel, and we use a combination of the two.

For ioctl numbers that have the same identifier on 32 and 64 bit systems,we go directly through the compat_ioctl socket operation, for those thatdiffer, we do a conversion in fs/compat_ioctl.c.This patch moves both variants into the vcc_compat_ioctl() function, whilepreserving the current behaviour. It also kills off the COMPATIBLE_IOCTLdefinitions that we never use here.Doing it this way is clearly not a good solution, but I hope it is astep into the right direction, so that someone is able to clean up thismess for real.

Found while trying to untangle the compat socket ioctl messin fs/compat_ioctl.c.