From 621b55f74c2f16de0c028fcffb4b4c7125d44f97 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Fri, 1 Nov 2019 11:10:42 -0700 Subject: [PATCH] gpu: nvgpu: remove __must_check compiler directive MISRA flags all unchecked return values. There is no need of having __must_check compiler directive. Also to make sphinx/breathe happy, this is removed. JIRA NVGPU-3950 Change-Id: If41232d6254eac45558af17308d9a46a2752539a Signed-off-by: Seema Khowala Reviewed-on: https://git-master.nvidia.com/r/2230173 Reviewed-by: Thomas Fleury Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Philip Elcan Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/channel_sync_syncpt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/channel_sync_syncpt.h b/drivers/gpu/nvgpu/include/nvgpu/channel_sync_syncpt.h index 2c99444d6..d5ea30209 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/channel_sync_syncpt.h +++ b/drivers/gpu/nvgpu/include/nvgpu/channel_sync_syncpt.h @@ -62,7 +62,7 @@ int nvgpu_channel_sync_wait_syncpt(struct nvgpu_channel_sync_syncpt *s, * Converts a valid struct nvgpu_channel_sync ptr to * struct nvgpu_channel_sync_syncpt ptr else return NULL. */ -struct nvgpu_channel_sync_syncpt * __must_check +struct nvgpu_channel_sync_syncpt * nvgpu_channel_sync_to_syncpt(struct nvgpu_channel_sync *sync); /* @@ -93,7 +93,7 @@ static inline int nvgpu_channel_sync_wait_syncpt( return -EINVAL; } -static inline struct nvgpu_channel_sync_syncpt * __must_check +static inline struct nvgpu_channel_sync_syncpt * nvgpu_channel_sync_to_syncpt(struct nvgpu_channel_sync *sync) { return NULL;