From 639f38d8a7c4de7e192a96ede9f19182e7dc40c6 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 31 Oct 2017 14:52:11 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1589506 Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | 2 ++ 1 file changed, 2 insertions(+) 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 @@ struct gk20a_ecc_stat { char **names; u32 *counters; +#ifdef CONFIG_SYSFS struct hlist_node hash_node; +#endif }; #ifdef CONFIG_ARCH_TEGRA_18x_SOC -- cgit v1.2.2