summaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
authorVojtech Pavlik <vojtech@suse.cz>2005-05-29 09:26:50 +0200
committerDmitry Torokhov <dtor_core@ameritech.net>2005-05-29 09:26:50 +0200
commitb0f71c996849539ac68ebab5edbd208bb9c0646c (patch)
tree9dab6fd062849531d8320f1cadc83d17bf0b5909 /drivers/input/evdev.c
parentInput: Add support for 32-bit emulation on 64-bit platforms for evdev. (diff)
downloadlinux-b0f71c996849539ac68ebab5edbd208bb9c0646c.tar.xz
linux-b0f71c996849539ac68ebab5edbd208bb9c0646c.zip
Input: Fix a warning in evdev's 32-bit emulation code.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index a04a8314dc87..c1c220fcb763 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -491,7 +491,9 @@ static long evdev_ioctl_compat(struct file *file, unsigned int cmd, unsigned lon
struct input_dev *dev = evdev->handle.dev;
struct input_absinfo abs;
void __user *p = compat_ptr(arg);
+#ifdef __BIG_ENDIAN
int i;
+#endif
if (!evdev->exist) return -ENODEV;