gpu: nvgpu: compile out unreachable code in unit testing

Make use of the POSIX flag to compile out a BPMP-related print that
cannot occur in posix builds.

JIRA NVGPU-932

Change-Id: I4373b9d0d486316dbae3a555f6887361ec54ea29
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2259665
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nicolas Benech
2019-12-10 18:10:56 -05:00
committed by Alex Waterman
parent 0285ca6d98
commit ce6fc269a1

View File

@@ -48,15 +48,15 @@
static void gv11b_init_nvlink_soc_credits(struct gk20a *g)
{
#ifndef __NVGPU_POSIX__
if (nvgpu_is_bpmp_running(g) && (!nvgpu_platform_is_simulation(g))) {
nvgpu_log(g, gpu_dbg_info, "nvlink soc credits init done by bpmp");
} else {
#ifndef __NVGPU_POSIX__
#ifdef CONFIG_NVGPU_NVLINK
nvgpu_mss_nvlink_init_credits(g);
#endif
#endif
}
#endif
}
static void gv11b_fb_set_atomic_mode(struct gk20a *g)