From f3549327f9ec90217885ed36bbad18f4d9153f35 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Thu, 26 Apr 2018 10:46:29 -0700 Subject: gpu: nvgpu: Add RMOS include for the PCI header Necessary in order for QNX to avoid setting __NVGPU_POSIX__ globally. Change-Id: I020609c28766951269371358bae71b0fb4de7803 Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1703386 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Peter Daifuku Reviewed-by: Richard Zhao GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/pci.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/pci.h b/drivers/gpu/nvgpu/include/nvgpu/pci.h index 6b5c1310..388e6de8 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/pci.h +++ b/drivers/gpu/nvgpu/include/nvgpu/pci.h @@ -27,11 +27,11 @@ #include #elif defined(__NVGPU_POSIX__) #include +#elif defined(__QNX__) +#include #else /* - * In case someone tries to use this without implementing support! QNX currently - * does it's own thing with regard to PCI so they don't need this, but just in - * case they accidentally include this. + * In case someone tries to use this without implementing support! */ #error "Build bug: need PCI headers!" #endif -- cgit v1.2.2