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 <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2230173
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Seema Khowala
2019-11-01 11:10:42 -07:00
committed by Alex Waterman
parent 4514366cc7
commit 621b55f74c

View File

@@ -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 * Converts a valid struct nvgpu_channel_sync ptr to
* struct nvgpu_channel_sync_syncpt ptr else return NULL. * 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); nvgpu_channel_sync_to_syncpt(struct nvgpu_channel_sync *sync);
/* /*
@@ -93,7 +93,7 @@ static inline int nvgpu_channel_sync_wait_syncpt(
return -EINVAL; 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) nvgpu_channel_sync_to_syncpt(struct nvgpu_channel_sync *sync)
{ {
return NULL; return NULL;