mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
nvgpu_err() macro with nvgpu_readl() call results in a volatile access. This violates PRE31-C rule - "Using an unsafe function-like macro with side effect in argument nvgpu_readl()" due to side effect of a volatile access. Fix this by moving nvgpu_readl() calls before nvgpu_err(). JIRA NVGPU-3908 Change-Id: I927d515c4b24cd4cfca16691918f327e06894c5a Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2178415 GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>