From: Vojtech Pavlik Date: Sun, 29 May 2005 07:26:50 +0000 (-0500) Subject: Input: Fix a warning in evdev's 32-bit emulation code. X-Git-Tag: firefly_0821_release~42870^2~137^2~46 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b0f71c996849539ac68ebab5edbd208bb9c0646c;p=firefly-linux-kernel-4.4.55.git Input: Fix a warning in evdev's 32-bit emulation code. Signed-off-by: Vojtech Pavlik Signed-off-by: Dmitry Torokhov --- 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;