summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-05-22 15:10:30 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-24 13:55:14 -0400
commitac5438d983e6d1b50ba598c277027a331c60d207 (patch)
tree662957cc5027df54d868dc743bcc7265b8e3ab23 /drivers
parent3f27b8f0891cf317b0607f221101a144cab48f8d (diff)
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 <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1727427 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/sim.h2
1 files changed, 2 insertions, 0 deletions
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 {
42#ifdef __KERNEL__ 42#ifdef __KERNEL__
43#include "linux/sim.h" 43#include "linux/sim.h"
44#include "linux/sim_pci.h" 44#include "linux/sim_pci.h"
45#elif defined(__NVGPU_POSIX__)
46/* Nothing for POSIX-nvgpu. */
45#else 47#else
46#include <nvgpu_rmos/include/sim.h> 48#include <nvgpu_rmos/include/sim.h>
47#include <nvgpu_rmos/include/sim_pci.h> 49#include <nvgpu_rmos/include/sim_pci.h>