trixirt
trixirt
On Fedora half.hpp is installed to the system dir /usr/include. There is no cmake package, so finding the half cmake package will always fail. The source looks for half with...
clang static analysis reports this issue on RHEL open-gpu-kernel-modules/kernel-open/nvidia/nv.c:1392:9: warning: Attempt to free released memory [unix.Malloc] NV_KFREE(nvl->irq_count, nvl->num_intr*sizeof(nv_irq_count_info_t)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This is a false positive, NV_FLAG_USES_MSIX and NV_FLAG_USES_MSI are mutually exclusive....
Clang static analysis on RHEL reports this issue addrtree.c:1154:50: warning: The left operand of '/' is a garbage value [core.UndefinedBinaryOperatorResult] *numPagesAlloc += localNumPagesAlloc / 2; ~~~~~~~~~~~~~~~~~~ ^ _pmaAddrtreeScanContiguous() can return...
The pattern of p = kmalloc(...); memset(p, 0, ...); Can be reduced to p = kzalloc(...) So introduce and use NV_KZALLOC, a macro that wraps kzalloc. Signed-off-by: Tom Rix