diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-01-04 15:47:37 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-05 16:23:30 -0500 |
commit | 67fc4629892ab60d6335752b93d883ef690f1ea4 (patch) | |
tree | 5750df6cd8a4860fa67e77e15ac6e45dc2b030f3 /drivers | |
parent | 4099785e2d60377459845b8fa886ab6be1a1d8e4 (diff) |
gpu: nvgpu: Don't recursively #include gk20a.h
gk20a.h includes pmu_gk20a.h, which #includes gpmuifboardobj.h,
which recursively #includes gk20a.h without needing anything from it.
Remove the #include to improve built time.
gpmuifboardobj.h also includes pmu_gk20a.h, when it actually needs a
definition from pmu_common.h. Change the #include to prevent another
recursive #include.
Bug 200192125
Change-Id: Idb8c13bceeae1a60a4efa466c07e78cb15ffa1fb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1280348
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/pmuif/gpmuifboardobj.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/pmuif/gpmuifboardobj.h b/drivers/gpu/nvgpu/pmuif/gpmuifboardobj.h index 7a061472..b3fc127f 100644 --- a/drivers/gpu/nvgpu/pmuif/gpmuifboardobj.h +++ b/drivers/gpu/nvgpu/pmuif/gpmuifboardobj.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -13,8 +13,7 @@ | |||
13 | #ifndef _GPMUIFBOARDOBJ_H_ | 13 | #ifndef _GPMUIFBOARDOBJ_H_ |
14 | #define _GPMUIFBOARDOBJ_H_ | 14 | #define _GPMUIFBOARDOBJ_H_ |
15 | 15 | ||
16 | #include "gk20a/gk20a.h" | 16 | #include "gk20a/pmu_common.h" |
17 | #include "gk20a/pmu_gk20a.h" | ||
18 | #include "ctrl/ctrlboardobj.h" | 17 | #include "ctrl/ctrlboardobj.h" |
19 | 18 | ||
20 | /* | 19 | /* |