Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383764 > unrolled thread

Re: platform/chrome: cros_ec_dev - Populate compat_ioctl

Started byBrian Norris <briannorris@chromium.org>
First post2016-04-20 23:50 +0200
Last post2016-04-20 23:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: platform/chrome: cros_ec_dev - Populate compat_ioctl Brian Norris <briannorris@chromium.org> - 2016-04-20 23:50 +0200

#1383764 — Re: platform/chrome: cros_ec_dev - Populate compat_ioctl

FromBrian Norris <briannorris@chromium.org>
Date2016-04-20 23:50 +0200
SubjectRe: platform/chrome: cros_ec_dev - Populate compat_ioctl
Message-ID<rq8av-6mN-5@gated-at.bofh.it>
On Thu, Apr 14, 2016 at 07:35:29PM -0700, Guenter Roeck wrote:
> compat_ioctl has to be populated for 32 bit userspace applications to work
> with 64 bit kernels.
> 
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Tested with 32-bit user space on ARM64:

Tested-by: Brian Norris <briannorris@chromium.org>

> ---
> drivers/platform/chrome/cros_ec_dev.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/platform/chrome/cros_ec_dev.c b/drivers/platform/chrome/cros_ec_dev.c
> index 6c45e0f5ba7b..903b1d8dcab7 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)

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web