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
<stdint.h>. Custom build environments can include their own correct
header for type definitions

Jira NVGPU-8619

Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Change-Id: Ida7c327a5ac4a5c7a0ed18f792a58a17dcbc36b2
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2767310
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Debarshi Dutta
2022-08-26 10:46:41 +05:30
committed by mobile promotions
parent 44587840e2
commit fb8bfb90c3
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
#if defined(__cplusplus) #if defined(__cplusplus)
#include <cstdint> #include <cstdint>
#else #elif !defined(__KERNEL__)
#include <stdint.h> #include <stdint.h>
#endif #endif

View File

@@ -18,7 +18,7 @@
#if defined(__cplusplus) #if defined(__cplusplus)
#include <cstdint> #include <cstdint>
#else #elif !defined(__KERNEL__)
#include <stdint.h> #include <stdint.h>
#endif #endif