summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-10-31 17:52:11 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-01 18:26:41 -0400
commit639f38d8a7c4de7e192a96ede9f19182e7dc40c6 (patch)
treef94301a6feecd3a50c8cb96d0530058b1e533d28
parenta5e76ed7af2ffd496d23129f8f3d989335f8b21c (diff)
gpu: nvgpu: Introduce ecc_gk20a.hash_node only if SYSFS supported
ecc_gk20a structure has field hash_node for sysfs operations. Make that field conditional to CONFIG_SYSFS to allow building the code in systems without sysfs. JIRA NVGPU-259 Change-Id: Ic153272daa2ae6d9099b95280d10c085f1bef796 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1589506 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gk20a/ecc_gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
index 3f812b85..f04ff56c 100644
--- a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
@@ -27,7 +27,9 @@
27struct gk20a_ecc_stat { 27struct gk20a_ecc_stat {
28 char **names; 28 char **names;
29 u32 *counters; 29 u32 *counters;
30#ifdef CONFIG_SYSFS
30 struct hlist_node hash_node; 31 struct hlist_node hash_node;
32#endif
31}; 33};
32 34
33#ifdef CONFIG_ARCH_TEGRA_18x_SOC 35#ifdef CONFIG_ARCH_TEGRA_18x_SOC