From d4fcf90047fcf5f576801b8c1cfbca5b9ac44844 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 2 Jun 2017 15:44:59 +0530 Subject: gpu: nvgpu: fix recursive include from clk.h Fix recursion in header include sequence : gk20a.h -> clk.h -> gk20a.h by removing gk20a.h include from clk/clk.h Fix the compile time error by forward declaring struct gk20a Coverity id : 2567917 Bug 200291879 Change-Id: I8fc3a8787dae91ae1a070c63bae6550596734603 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1495904 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam Reviewed-by: svccoveritychecker --- drivers/gpu/nvgpu/clk/clk.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/clk') diff --git a/drivers/gpu/nvgpu/clk/clk.h b/drivers/gpu/nvgpu/clk/clk.h index b173a09e..0dd7bf77 100644 --- a/drivers/gpu/nvgpu/clk/clk.h +++ b/drivers/gpu/nvgpu/clk/clk.h @@ -1,7 +1,7 @@ /* * general clock structures & definitions * - * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-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, @@ -22,12 +22,13 @@ #include "clk_vf_point.h" #include "clk_mclk.h" #include "clk_freq_controller.h" -#include "gk20a/gk20a.h" #define NV_PERF_DOMAIN_4X_CLOCK_DOMAIN_SKIP 0x10 #define NV_PERF_DOMAIN_4X_CLOCK_DOMAIN_MASK 0x1F #define NV_PERF_DOMAIN_4X_CLOCK_DOMAIN_SHIFT 0 +struct gk20a; + /* clock related defines for GPUs supporting clock control from pmu*/ struct clk_pmupstate { struct avfsvinobjs avfs_vinobjs; -- cgit v1.2.2