Files
linux-nvgpu/drivers/gpu
srajum a3efb4cc98 gpu: nvgpu: Hiding extra branch with nvgpu_assert(), BUG_ON() API
- A static inline for POSIX/QNX so that we can hide the branch in
  nvgpu_assert(), BUG_ON() from the branch analysis for users of this
  function.

- A macro for BUG_ON() is showing the extra branch for every instance,
  which causes huge drop in branch coverage.

JIRA NVGPU-6547

Change-Id: Iaa77df2b4d5b3d49596f05d9554604582b1209ae
Signed-off-by: srajum <srajum@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2503609
(cherry picked from commit 6f36f0b47ac9911526b6c434a8cf5c4a456aeacf)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2504692
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2021-03-30 19:05:21 -07:00
..