From ac5438d983e6d1b50ba598c277027a331c60d207 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 22 May 2018 12:10:30 -0700 Subject: gpu: nvgpu: Add posix condition in sim.h Without this the default fall back includes are the rmos headers which are obviously not present for the POSUX build. Change-Id: Iaf7d459e09c62dd57c5b33e21934e40f5780840a Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1727427 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/sim.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/nvgpu/include/nvgpu/sim.h b/drivers/gpu/nvgpu/include/nvgpu/sim.h index 4469d8ee..fe8e8ac6 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/sim.h +++ b/drivers/gpu/nvgpu/include/nvgpu/sim.h @@ -42,6 +42,8 @@ struct sim_nvgpu { #ifdef __KERNEL__ #include "linux/sim.h" #include "linux/sim_pci.h" +#elif defined(__NVGPU_POSIX__) +/* Nothing for POSIX-nvgpu. */ #else #include #include -- cgit v1.2.2