From 4b0c4e4c9785bd420f0074094b503007f4549b87 Mon Sep 17 00:00:00 2001 From: Yogish Kulkarni Date: Thu, 6 Feb 2014 10:44:01 +0530 Subject: video: tegra: host: use signed type for channel fd Change argument of channel open ioctl to return signed type. Bug 1441062 Change-Id: I6d5d6bd3afabda08a22ae28e6cc9f187ef4afa86 Signed-off-by: Yogish Kulkarni Reviewed-on: http://git-master/r/364156 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- include/linux/nvhost_ioctl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/nvhost_ioctl.h b/include/linux/nvhost_ioctl.h index 8e1e066cdd5e..d94dbcd19909 100644 --- a/include/linux/nvhost_ioctl.h +++ b/include/linux/nvhost_ioctl.h @@ -93,6 +93,10 @@ struct nvhost_get_param_arg { __u32 value; }; +struct nvhost_channel_open_args { + __s32 channel_fd; +}; + struct nvhost_set_nvmap_fd_args { __u32 fd; } __packed; @@ -384,7 +388,7 @@ struct nvhost_set_ctxswitch_args { #define NVHOST_IOCTL_CHANNEL_SET_ERROR_NOTIFIER \ _IOWR(NVHOST_IOCTL_MAGIC, 111, struct nvhost_set_error_notifier) #define NVHOST_IOCTL_CHANNEL_OPEN \ - _IOR(NVHOST_IOCTL_MAGIC, 112, struct nvhost_get_param_args) + _IOR(NVHOST_IOCTL_MAGIC, 112, struct nvhost_channel_open_args) #define NVHOST_IOCTL_CHANNEL_LAST \ _IOC_NR(NVHOST_IOCTL_CHANNEL_OPEN) -- cgit v1.2.3