mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: fix misra dir 4.6 and rule 20.7
Fix below misra violations:
directive_4_6_violation: Using basic numerical type "int" rather than
a typedef that includes size and signedness
information.
rule_20_7_violation: Macro parameter expands into an expression without
being wrapped by parentheses
Bug 3763551
Change-Id: I74f2edaef0b21369b76afd596b69157123eca261
Signed-off-by: Santosh BS <santoshb@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2868944
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: V M S Seeta Rama Raju Mudundi <srajum@nvidia.com>
Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com>
Reviewed-by: Ankur Kishore <ankkishore@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f5b50fec4d
commit
a7caa8da79
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2016-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -75,7 +75,7 @@ int nvgpu_timeout_init_flags(struct gk20a *g, struct nvgpu_timeout *timeout,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout,
|
||||
static s32 nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout,
|
||||
void *caller,
|
||||
const char *fmt, va_list args)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ static int nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout,
|
||||
static s32 nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout,
|
||||
void *caller,
|
||||
const char *fmt, va_list args)
|
||||
{
|
||||
@@ -138,10 +138,10 @@ static int nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout,
|
||||
* If a timeout occurs and %NVGPU_TIMER_SILENT_TIMEOUT is not set in the timeout
|
||||
* then a message is printed based on %fmt.
|
||||
*/
|
||||
int nvgpu_timeout_expired_msg_impl(struct nvgpu_timeout *timeout,
|
||||
s32 nvgpu_timeout_expired_msg_impl(struct nvgpu_timeout *timeout,
|
||||
void *caller, const char *fmt, ...)
|
||||
{
|
||||
int ret;
|
||||
s32 ret;
|
||||
va_list args;
|
||||
|
||||
va_start(args, fmt);
|
||||
|
||||
Reference in New Issue
Block a user