summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h
diff options
context:
space:
mode:
authorSzilveszter Székely <szekelyszilv@gmail.com>2018-11-28 23:40:32 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-05 09:44:05 +0100
commit0ff8c980c7a78e4c48eecb6d730012351f226b61 (patch)
treec033af230986f46b05b522ed56e6cd822ac2879b /drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h
parent0bc5b2ba455f1b35c7292b393134f249afb03154 (diff)
staging: vchiq_arm: add __user pointer annotations
Add __user to pointers based on context and suggestions by sparse. Other sparse warnings still remain, in cases where more change would be required apart from adding __user. Signed-off-by: Szilveszter Székely <szekelyszilv@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h')
-rw-r--r--drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h
index 9f859953f45c..858f46bd2ed7 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h
@@ -50,7 +50,7 @@ typedef struct {
typedef struct {
unsigned int handle;
unsigned int count;
- const struct vchiq_element *elements;
+ const struct vchiq_element __user *elements;
} VCHIQ_QUEUE_MESSAGE_T;
typedef struct {
@@ -85,7 +85,7 @@ typedef struct {
typedef struct {
unsigned int config_size;
- VCHIQ_CONFIG_T *pconfig;
+ VCHIQ_CONFIG_T __user *pconfig;
} VCHIQ_GET_CONFIG_T;
typedef struct {