From: Guenter Roeck Date: Fri, 15 Apr 2016 02:35:29 +0000 (-0700) Subject: FROMLIST: platform/chrome: cros_ec_dev - Populate compat_ioctl X-Git-Tag: firefly_0821_release~2746 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=56ad960082586e01efb1b8dee49254fabe051ece;p=firefly-linux-kernel-4.4.55.git FROMLIST: platform/chrome: cros_ec_dev - Populate compat_ioctl compat_ioctl has to be populated for 32 bit userspace applications to work with 64 bit kernels. BUG=chrome-os-partner:52276 TEST=Build and test with ectool on kevin Change-Id: I3955d4cf869e4ad4b9f48cdc3b5901cf49dbbe83 Signed-off-by: Guenter Roeck (am from https://patchwork.kernel.org/patch/8844321/) Signed-off-by: Guenter Roeck Reviewed-on: https://chrome-internal-review.googlesource.com/256310 Commit-Ready: Brian Norris Tested-by: Brian Norris Reviewed-by: Doug Anderson Signed-off-by: Caesar Wang --- diff --git a/drivers/platform/chrome/cros_ec_dev.c b/drivers/platform/chrome/cros_ec_dev.c index d45cd254ed1c..74979362fd3d 100644 --- a/drivers/platform/chrome/cros_ec_dev.c +++ b/drivers/platform/chrome/cros_ec_dev.c @@ -208,6 +208,9 @@ static const struct file_operations fops = { .release = ec_device_release, .read = ec_device_read, .unlocked_ioctl = ec_device_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = ec_device_ioctl, +#endif }; static void __remove(struct device *dev)