]> err.no Git - linux-2.6/commit
HID: fix build failure in hiddev_ioctl with gcc 3.2
authorJean Delvare <khali@linux-fr.org>
Mon, 3 Mar 2008 10:48:43 +0000 (11:48 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 22 Apr 2008 09:34:56 +0000 (11:34 +0200)
commitcf2a299e48cbeb6c942e1f765b92ca6058355f68
tree294c01c0048bd7db0c84003f4dd9f98c78900577
parent807501475fce0ebe68baedf87f202c3e4ee0d12c
HID: fix build failure in hiddev_ioctl with gcc 3.2

Fix build failure in hiddev_ioctl with gcc 3.2:
http://bugzilla.kernel.org/show_bug.cgi?id=10121

The trick is to move the handling of ioctls which need to allocate
memory to separate functions.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hiddev.c