mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
MISRA Rule 11.2 doesn't allow conversion to or from an incomplete type pointer, as it may result incorrect point alignment and may further lead to undefined behavior. MISRA Rule 16.x requires all switch statements to be well-formed with terminating break statement for every switch-clause. This patch fixes 11.2 and 16.x violations in common.mm.nvgpu_mem. Jira NVGPU-3339 Change-Id: I002393cc64d44826e6954d1bf6af71bd569e862f Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2113096 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>