mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
The ALIGN() and ALIGN_MASK() macros were causing INT30 CERT-C violations because of possible wrap issues. Update the macros to check for potential wrap cases. JIRA NVGPU-3515 Change-Id: I2af50fe036e8fcaf27e484af134c4a54fa4d19a1 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2124998 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>