]> git.baikalelectronics.ru Git - kernel.git/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)
commit110b3218a001fe5f970f8b83bd0c2da8eb54f3c1
tree294c01c0048bd7db0c84003f4dd9f98c78900577
parentefaa95a6c67043dae3d253b97a72bef10acc8ca6
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