mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Fix signed comparison bugs
Fix small problems related to signed versus unsigned comparisons throughout the driver. Bump up the warning level to prevent such problems from occuring in future. Change-Id: I8ff5efb419f664e8a2aedadd6515ae4d18502ae0 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1252068 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5494e846c7
commit
d29afd2c9e
@@ -581,7 +581,7 @@ static inline int get_timestamps_zipper(struct gk20a *g,
|
||||
struct nvgpu_gpu_get_cpu_time_correlation_info_args *args)
|
||||
{
|
||||
int err = 0;
|
||||
int i = 0;
|
||||
unsigned int i = 0;
|
||||
u32 gpu_timestamp_hi_new = 0;
|
||||
u32 gpu_timestamp_hi_old = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user