diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-05-22 15:10:30 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-24 13:55:14 -0400 |
commit | ac5438d983e6d1b50ba598c277027a331c60d207 (patch) | |
tree | 662957cc5027df54d868dc743bcc7265b8e3ab23 /drivers/gpu/nvgpu | |
parent | 3f27b8f0891cf317b0607f221101a144cab48f8d (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/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/sim.h | 2 |
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> |