mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +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. Enum nvgpu_nvlink_link_mode and nvgpu_nvlink_sublink_mode definitions were used in gk20a.h as return types to functions without including nvlink_link_mode_transitions.h header file. MISRA scanner considered this as two different definitions for these enums. Including correct header file resolves this issue. Jira NVGPU-3303 Change-Id: I1f8e198620ee20d81e663df2faa32337851abb93 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2120458 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>