mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
MISRA Rule 21.15 prohibits use of memcpy() with incompatible ptrs to qualified/unqualified types. To circumvent this issue we've introduced a new MISRA-compliant nvgpu_memcpy() function. This change switches over non-offending memcpy() uses in gr/pmu/volt code to nvgpu_memcpy() with appropriate casts applied to maintain consistency within the nvgpu source base. Also fixed a Rule 8.3 violation in vfe_var.c by sync'ing the param names between declarations of the devinit_get_vfe_var_table() routine. JIRA NVGPU-849 Change-Id: I004b461988bd3a26212b6fbf660ee7fa742ea1ba Signed-off-by: Scott Long <scottl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1952984 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>