From 380e6b2c0c5e03f35aed68b836f64c907070e297 Mon Sep 17 00:00:00 2001 From: Anup Mahindre Date: Fri, 5 Oct 2018 16:29:43 +0530 Subject: nvgpu: include: Fix NVGPU_TSG_IOCTL_READ_SINGLE_SM_ERROR_STATE definition IOCTL definition specifies _IOR whereas _IOWR is required Bug 200412642 Change-Id: I1093362ea621ee507d19236b859b7defb6dfa090 Signed-off-by: Anup Mahindre Reviewed-on: https://git-master.nvidia.com/r/1920071 (cherry picked from commit 79af49f86b90a80e20509a3b008440e9b9680cf9) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2287838 Reviewed-by: Deepak Nibade Reviewed-by: Sami Kiminki Reviewed-by: Bibek Basu Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: Thomas Fleury Tested-by: mobile promotions --- include/uapi/linux/nvgpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 786f8268..ad9dce1f 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -1085,7 +1085,7 @@ struct nvgpu_tsg_read_single_sm_error_state_args { #define NVGPU_TSG_IOCTL_BIND_CHANNEL_EX \ _IOWR(NVGPU_TSG_IOCTL_MAGIC, 11, struct nvgpu_tsg_bind_channel_ex_args) #define NVGPU_TSG_IOCTL_READ_SINGLE_SM_ERROR_STATE \ - _IOR(NVGPU_TSG_IOCTL_MAGIC, 12, \ + _IOWR(NVGPU_TSG_IOCTL_MAGIC, 12, \ struct nvgpu_tsg_read_single_sm_error_state_args) #define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ sizeof(struct nvgpu_tsg_bind_channel_ex_args) -- cgit v1.2.2