From 55902dfb1e6ebcdb08d8fa98ed32f228ebecda4f Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Tue, 25 Dec 2018 16:29:24 +0300 Subject: [PATCH] video: tegra: host: nvdla: use narrower types for DLA task data Since all of MAX_NUM_NVDLA_PREFENCES, MAX_NUM_NVDLA_POSTFENCES, MAX_NUM_NVDLA_IN_TASK_STATUS and MAX_NUM_NVDLA_OUT_TASK_STATUS are 32, it is possible to use narrower 'u8' type for appropriate counters. This is similar to what we have in PVA and also fixes some annoying warnings issued by automatic validators. Signed-off-by: Dmitry Antipov Change-Id: Ia99ecb7daed7b60336254b18acaab31fab157ad4 Reviewed-on: https://git-master.nvidia.com/r/1980368 Reviewed-by: Shridhar Rasal GVS: Gerrit_Virtual_Submit Reviewed-by: Prashant Gaikwad Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/nvdla.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla.h b/drivers/video/tegra/host/nvdla/nvdla.h index aaf7bf65..c065aeec 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.h +++ b/drivers/video/tegra/host/nvdla/nvdla.h @@ -3,7 +3,7 @@ * * Tegra Graphics Host NVDLA * - * Copyright (c) 2016-2018 NVIDIA Corporation. All rights reserved. + * Copyright (c) 2016-2019 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, @@ -260,10 +260,10 @@ struct nvdla_task { struct nvdla_status_notify in_task_status[MAX_NUM_NVDLA_IN_TASK_STATUS]; struct nvdla_status_notify out_task_status[MAX_NUM_NVDLA_OUT_TASK_STATUS]; struct nvdla_mem_handle memory_handles[NVDLA_MAX_BUFFERS_PER_TASK]; - u32 num_prefences; - u32 num_postfences; - u32 num_in_task_status; - u32 num_out_task_status; + u8 num_prefences; + u8 num_postfences; + u8 num_in_task_status; + u8 num_out_task_status; u32 num_addresses; u32 fence; u32 fence_counter;