From c891fc81ad6760a3a4e0a4b4b9225b9245b3697f Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Mon, 26 Sep 2016 17:16:02 -0700 Subject: gpu: nvgpu: Make sure struct is specified Make sure that struct class is at least forward declared so that inclusing nvgpu_common.h can be done from anywhere with no dependencies. Bug 1799159 Bug 1823380 Change-Id: Id8feaa5fd456f7a6e12ed85360d5df28f308faa4 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1283141 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/nvgpu_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/nvgpu_common.h b/drivers/gpu/nvgpu/nvgpu_common.h index 8c159012..85b4a3df 100644 --- a/drivers/gpu/nvgpu/nvgpu_common.h +++ b/drivers/gpu/nvgpu/nvgpu_common.h @@ -1,5 +1,5 @@ /* - * 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, @@ -18,6 +18,7 @@ #define NVGPU_COMMON_H struct gk20a; +struct class; int nvgpu_probe(struct gk20a *g, const char *debugfs_symlink, -- cgit v1.2.2