From 7665421874e66f0b00d52a5f1db5210895a9ab7b Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 11 Apr 2017 11:39:21 -0700 Subject: gpu: nvgpu: Replace use of bitops.h and kernel.h Remove use of linux/kernel.h and linux/compiler.h. We don't use anything in those headers. Also replace use of linux/bitops.h with new wrapper nvgpu/bitops.h. JIRA NVGPU-13 Change-Id: Iefa6b4598d5a5e7fc386c0a7a554e778a87010d6 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1460777 Reviewed-by: Alex Waterman Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade --- drivers/gpu/nvgpu/include/nvgpu/bitops.h | 20 ++++++++++++++++++++ drivers/gpu/nvgpu/include/nvgpu/log.h | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 drivers/gpu/nvgpu/include/nvgpu/bitops.h (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/bitops.h b/drivers/gpu/nvgpu/include/nvgpu/bitops.h new file mode 100644 index 00000000..0cd297b6 --- /dev/null +++ b/drivers/gpu/nvgpu/include/nvgpu/bitops.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_BITOPS_H__ +#define __NVGPU_BITOPS_H__ + +#ifdef __KERNEL__ +#include +#endif + +#endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/log.h b/drivers/gpu/nvgpu/include/nvgpu/log.h index f42fbedc..e16aaa92 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/log.h +++ b/drivers/gpu/nvgpu/include/nvgpu/log.h @@ -17,6 +17,9 @@ #ifndef __NVGPU_DEBUGGING_H__ #define __NVGPU_DEBUGGING_H__ +#include +#include + struct gk20a; enum nvgpu_log_type { -- cgit v1.2.2