summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
diff options
context:
space:
mode:
authorShashank Singh <shashsingh@nvidia.com>2018-02-28 05:47:15 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-10 12:43:51 -0400
commite1200259ba3ad4ae416990b2f2abccb94565430f (patch)
tree4b53dbb0bc4787741b8c45a868026fd4960a204e /drivers/gpu/nvgpu/gv100/nvlink_gv100.c
parentd693952a0b52127f23093c28a2896a3fd395485b (diff)
gpu: nvgpu: fix misc issue for dgpu code on QNX build
- QNX is pulling dgpu code from linux which has multiple build failure on QNX. Like QNX needs explicit declaration for all non-static functions. Some linux specific headers need to be put under __KERNEL__ flag. Change-Id: I15af1a1f6a069c82f9a81449f4f7c7d48612de42 Signed-off-by: Shashank Singh <shashsingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1665752 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-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/gv100/nvlink_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/nvlink_gv100.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
index d0dfebcf..d27239ae 100644
--- a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
@@ -202,7 +202,7 @@ static const struct __nvlink_reginit __nvlink_reginit_per_link_gpu[] = {
202 202
203#define NVL_DEVICE(str) nvlinkip_discovery_common_device_##str##_v() 203#define NVL_DEVICE(str) nvlinkip_discovery_common_device_##str##_v()
204 204
205const char * __gv100_device_type_to_str(u32 type) 205static const char *__gv100_device_type_to_str(u32 type)
206{ 206{
207 if (type == NVL_DEVICE(ioctrl)) 207 if (type == NVL_DEVICE(ioctrl))
208 return "IOCTRL"; 208 return "IOCTRL";
@@ -1259,7 +1259,7 @@ static void gv100_nvlink_nvlipt_intr_enable(struct gk20a *g, u32 link_id,
1259/* 1259/*
1260 * Per-link NVLIPT ISR handler 1260 * Per-link NVLIPT ISR handler
1261 */ 1261 */
1262bool gv100_nvlink_nvlipt_isr(struct gk20a *g, u32 link_id) 1262static bool gv100_nvlink_nvlipt_isr(struct gk20a *g, u32 link_id)
1263{ 1263{
1264 /* 1264 /*
1265 * Interrupt handling happens in leaf handlers. Assume all interrupts 1265 * Interrupt handling happens in leaf handlers. Assume all interrupts