mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
MISRA rule 5.7 forbids from re-using tag or identifier names multiple times. Multiple definitions of a tag or identifier may create developer confusion. Currently, enum nvgpu_unit definition is used in gk20a.h as type of function arguments without including unit.h header file. MISRA scanner considered this as two different definitions for the enum. Including correct header file resolves this issue. Jira NVGPU-3307 Change-Id: I824888084632e8897c7c0edcc2b05adfea4a6aff Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2122465 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>