From a596f0bd6d327ce832adca4ae915529dc0bb0b3b Mon Sep 17 00:00:00 2001 From: Alex Van Brunt Date: Wed, 30 Mar 2016 15:29:30 -0700 Subject: debugfs: Pass bool pointer to debugfs_create_bool() Port the change 621a5f7ad9cd1ce7933f1d302067cbd58354173c from kernel.org to the nvgpu driver. bug 200187033 Change-Id: I7d742f614161d9d4ed59c4216d7c730d57ef4116 Signed-off-by: Alex Van Brunt Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1118397 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 4482a21d..567369bc 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include "gk20a_allocator.h" @@ -342,10 +343,19 @@ struct mm_gk20a { bool use_full_comp_tag_line; #ifdef CONFIG_DEBUG_FS u32 ltc_enabled; +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) u32 ltc_enabled_debug; +#else + bool ltc_enabled_debug; +#endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) u32 bypass_smmu; u32 disable_bigpage; +#else + bool bypass_smmu; + bool disable_bigpage; +#endif bool has_physical_mode; }; -- cgit v1.2.2