diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvlink.h b/drivers/gpu/nvgpu/include/nvgpu/nvlink.h index 00f0eda98..59e2009f2 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvlink.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvlink.h @@ -27,6 +27,8 @@ #ifdef __KERNEL__ #include +#elif defined(__NVGPU_POSIX__) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/posix/nvlink.h b/drivers/gpu/nvgpu/include/nvgpu/posix/nvlink.h new file mode 100644 index 000000000..99cf837b6 --- /dev/null +++ b/drivers/gpu/nvgpu/include/nvgpu/posix/nvlink.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __NVGPU_POSIX_NVLINK_H__ +#define __NVGPU_POSIX_NVLINK_H__ + +/* + * Empty... + */ + +#endif