diff options
author | Todd Poynor <toddpoynor@google.com> | 2018-07-19 20:49:19 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-21 08:50:36 +0200 |
commit | de3690d025fced530a587b820f00f67cd964289e (patch) | |
tree | cde89b6558ed839f436a0ead1347d4b8ca3b9bfa /drivers/staging/gasket/gasket_ioctl.h | |
parent | c13435deaadca078ce5651c43ed8d7561215b20a (diff) |
staging: gasket: common ioctl dispatcher add __user annotations
Add __user annotation to gasket core common ioctl pointer arguments for
sparse checking.
Reported-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Zhongze Hu <frankhu@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gasket/gasket_ioctl.h')
-rw-r--r-- | drivers/staging/gasket/gasket_ioctl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/gasket/gasket_ioctl.h b/drivers/staging/gasket/gasket_ioctl.h index 461fab27a3e5..51f468c77f04 100644 --- a/drivers/staging/gasket/gasket_ioctl.h +++ b/drivers/staging/gasket/gasket_ioctl.h @@ -5,6 +5,8 @@ #include "gasket_core.h" +#include <linux/compiler.h> + /* * Handle Gasket common ioctls. * @filp: Pointer to the ioctl's file. @@ -13,7 +15,7 @@ * * Returns 0 on success and nonzero on failure. */ -long gasket_handle_ioctl(struct file *filp, uint cmd, ulong arg); +long gasket_handle_ioctl(struct file *filp, uint cmd, void __user *argp); /* * Determines if an ioctl is part of the standard Gasket framework. |