From 7ef1eb8a10e507d8ba3b92e24472c06500fd5f36 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 11 Apr 2017 14:40:47 -0700 Subject: gpu: nvgpu: Add wrapper nvgpu/sort.h Add wrapper header file nvgpu/sort.h. It #includes on Linux. JIRA NVGPU-13 Change-Id: I2393db830a15d5fbf0aa1fb9d55721a06061c09d Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1461544 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 2 +- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 +- drivers/gpu/nvgpu/include/nvgpu/sort.h | 20 ++++++++++++++++++++ drivers/gpu/nvgpu/volt/volt_dev.c | 3 +-- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 drivers/gpu/nvgpu/include/nvgpu/sort.h (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index a5863567..5a50b843 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -24,7 +24,6 @@ #ifdef CONFIG_TEGRA_GK20A_NVHOST #include #endif -#include #include #include @@ -33,6 +32,7 @@ #include #include #include +#include #include "gk20a.h" #include "debug_gk20a.h" diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 96ec7f6e..8489816e 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include @@ -34,6 +33,7 @@ #include #include #include +#include #include "gk20a.h" #include "kind_gk20a.h" diff --git a/drivers/gpu/nvgpu/include/nvgpu/sort.h b/drivers/gpu/nvgpu/include/nvgpu/sort.h new file mode 100644 index 00000000..70e0f47f --- /dev/null +++ b/drivers/gpu/nvgpu/include/nvgpu/sort.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2017, 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. + */ +#ifndef __NVGPU_SORT_H__ +#define __NVGPU_SORT_H__ + +#ifdef __KERNEL__ +#include +#endif + +#endif diff --git a/drivers/gpu/nvgpu/volt/volt_dev.c b/drivers/gpu/nvgpu/volt/volt_dev.c index 8e229f4c..9fd80144 100644 --- a/drivers/gpu/nvgpu/volt/volt_dev.c +++ b/drivers/gpu/nvgpu/volt/volt_dev.c @@ -11,8 +11,7 @@ * more details. */ -#include - +#include #include #include #include -- cgit v1.2.2