From fb8bfb90c366abf9e0159a6e69d904163c83ec87 Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Fri, 26 Aug 2022 10:46:41 +0530 Subject: [PATCH] gpu: nvgpu: allow custom header include stdint.h is not included as part of the kernel build file for linux resulting in build failures when using this header as it is. Modified this interface to remove the restriction for using . Custom build environments can include their own correct header for type definitions Jira NVGPU-8619 Signed-off-by: Debarshi Dutta Change-Id: Ida7c327a5ac4a5c7a0ed18f792a58a17dcbc36b2 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2767310 Reviewed-by: svcacv Reviewed-by: Vijayakumar Subbu GVS: Gerrit_Virtual_Submit --- nvsched/include/nvs/nvs-control-interface.h | 2 +- nvsched/include/nvs/nvs-control-messages.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nvsched/include/nvs/nvs-control-interface.h b/nvsched/include/nvs/nvs-control-interface.h index ce6b96578..ea710081e 100644 --- a/nvsched/include/nvs/nvs-control-interface.h +++ b/nvsched/include/nvs/nvs-control-interface.h @@ -20,7 +20,7 @@ #if defined(__cplusplus) #include -#else +#elif !defined(__KERNEL__) #include #endif diff --git a/nvsched/include/nvs/nvs-control-messages.h b/nvsched/include/nvs/nvs-control-messages.h index 5d0705ea1..7cc1905de 100644 --- a/nvsched/include/nvs/nvs-control-messages.h +++ b/nvsched/include/nvs/nvs-control-messages.h @@ -18,7 +18,7 @@ #if defined(__cplusplus) #include -#else +#elif !defined(__KERNEL__) #include #endif