summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-09-26 20:16:02 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-10 14:57:30 -0500
commitc891fc81ad6760a3a4e0a4b4b9225b9245b3697f (patch)
treef898f752e9582ad8e18e97b25281495d5e081f26 /drivers
parent3885fe099af0bda910ac8ee64f2cd1a5bbea3ab0 (diff)
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 <alexw@nvidia.com> Reviewed-on: http://git-master/r/1283141 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/nvgpu_common.h3
1 files changed, 2 insertions, 1 deletions
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 @@
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,
@@ -18,6 +18,7 @@
18#define NVGPU_COMMON_H 18#define NVGPU_COMMON_H
19 19
20struct gk20a; 20struct gk20a;
21struct class;
21 22
22int nvgpu_probe(struct gk20a *g, 23int nvgpu_probe(struct gk20a *g,
23 const char *debugfs_symlink, 24 const char *debugfs_symlink,