From c9042a1f45324e87b267b758288ba645a6ea0808 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 19 Apr 2017 17:46:41 +0530 Subject: gpu: nvgpu: Add wrapper nvgpu/hashtable.h Add wrapper header file nvgpu/hashtable.h. It #includes in Linux. JIRA NVGPU-13 Change-Id: I88e02ab783ac414990a33d4d64c910644ff38fe6 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1465615 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c | 1 - drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 2 +- drivers/gpu/nvgpu/include/nvgpu/hashtable.h | 20 ++++++++++++++++++++ drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/nvgpu/include/nvgpu/hashtable.h diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c index 5b1dff17..1598fe50 100644 --- a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 174fdb18..b5bf34bb 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c @@ -14,12 +14,12 @@ #include #include #include -#include #include #include #include #include +#include #include "ctxsw_trace_gk20a.h" #include "fecs_trace_gk20a.h" diff --git a/drivers/gpu/nvgpu/include/nvgpu/hashtable.h b/drivers/gpu/nvgpu/include/nvgpu/hashtable.h new file mode 100644 index 00000000..cf181c6d --- /dev/null +++ b/drivers/gpu/nvgpu/include/nvgpu/hashtable.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/tegra/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c index d04a2885..1178f426 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include @@ -29,6 +28,7 @@ #include #include +#include #include "clk.h" -- cgit v1.2.2