From a108d3f0368c72f2d553cac1470531677b5a7b88 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 28 Mar 2018 13:39:30 -0700 Subject: gpu: nvgpu: Use u64 for log mask BIT() is defined as returning a 64-bit value. We use it to create the log mask values, but the functions that accept log mask take only u32 as parameter. Use u64 as log mask parameter for the logging functions to match the sizes. Change-Id: I6f0803a7d04ee6a2ee725b5defc4cc14b5b7acf5 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1683818 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/debug.c') diff --git a/drivers/gpu/nvgpu/common/linux/debug.c b/drivers/gpu/nvgpu/common/linux/debug.c index 80a1f7db..a458a3d4 100644 --- a/drivers/gpu/nvgpu/common/linux/debug.c +++ b/drivers/gpu/nvgpu/common/linux/debug.c @@ -308,11 +308,11 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink) l->debugfs, &g->disable_syncpoints); /* Legacy debugging API. */ - debugfs_create_u32("dbg_mask", S_IRUGO|S_IWUSR, + debugfs_create_u64("dbg_mask", S_IRUGO|S_IWUSR, l->debugfs, &nvgpu_dbg_mask); /* New debug logging API. */ - debugfs_create_u32("log_mask", S_IRUGO|S_IWUSR, + debugfs_create_u64("log_mask", S_IRUGO|S_IWUSR, l->debugfs, &g->log_mask); debugfs_create_u32("log_trace", S_IRUGO|S_IWUSR, l->debugfs, &g->log_trace); -- cgit v1.2.2