mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
MISRA rule 10.4 prohibits operator operands having different essential type. The POSIX ffs() and fls() implementations were subtracting a signed value of 1 from a unsigned long. The 1 is updated to be 1ULL to fix the violation. JIRA NVGPU-3337 Change-Id: I57d64705a3069c05c02635f4dd70902e96046d7d Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2109645 Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>