summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-01-10 03:59:44 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-10 11:47:11 -0500
commit5fb7c7d8f97bbec0d01f4f26aaf7757790c8b407 (patch)
tree32f73a66ab3ededb624cb11dcd4c54a6ce6f4d0c
parente9de95d7e0629c40b5ceb56c07de319bedd3339f (diff)
gpu: nvgpu: protect linux include with config
In fence_gk20a.c protect <linux/file.h> and <linux/fs.h> includes with config CONFIG_SYNC since they are only needed with this config enabled Jira NVGPU-487 Change-Id: I6c26aa0fbb4ee284129109c625a0e324d5caf235 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1635471 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gk20a/fence_gk20a.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c
index 027ff462..e31770c3 100644
--- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -22,8 +22,10 @@
22 22
23#include "fence_gk20a.h" 23#include "fence_gk20a.h"
24 24
25#ifdef CONFIG_SYNC
25#include <linux/file.h> 26#include <linux/file.h>
26#include <linux/fs.h> 27#include <linux/fs.h>
28#endif
27 29
28#include <nvgpu/semaphore.h> 30#include <nvgpu/semaphore.h>
29#include <nvgpu/kmem.h> 31#include <nvgpu/kmem.h>