mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: whitelist MISRA 14.3 bugs
Whitelist MISRA Rule 14.3 violations that are due to a bug in the Coverity scanner documented in nvbug 2615925. JIRA NVGPU-4031 Change-Id: Ib8e03641578f27a774b05758cb292236f720c3ba Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2198904 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
039ec0b3da
commit
4874324ee5
@@ -40,6 +40,7 @@ unsigned long nvgpu_posix_ffs(unsigned long word)
|
||||
nvgpu_safe_cast_u64_to_s64(
|
||||
(word & (unsigned long) LONG_MAX)));
|
||||
} else {
|
||||
NVGPU_COV_WHITELIST(false_positive, NVGPU_MISRA(Rule, 14_3), "Bug 2615925")
|
||||
if (word > (unsigned long) LONG_MAX) {
|
||||
ret = (int) 64;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user