mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
dbbe6b67be140efb1f38df6fcc0355e61bc72f09
Add nvgpu_wrapping_add_u32() to perform static analysis safe arithmetic where unsigned wraparound is expected. nvgpu_safe_add_u32() expects that the result does not wrap, so it cannot be used in such cases. Jira NVGPU-5491 Change-Id: I68f550fbc62601a9045f8e405e925ad8dac90872 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2342585 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided