From 8e8ab427330294be69b98a722561cf1b9535d047 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 17 Aug 2016 17:29:27 +0200 Subject: gpu: nvgpu: fix gcc-6 compilation drivers/gpu/nvgpu/gk20a/regops_gk20a.c:344:40: error: 'gk20a_runcontrol_whitelist_ranges' defined but not used [-Werror=unused-const-variable=] static const struct regop_offset_range gk20a_runcontrol_whitelist_ranges[] = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/nvgpu/gk20a/regops_gk20a.c:350:18: error: 'gk20a_runcontrol_whitelist_ranges_count' defined but not used [-Werror=unused-const-variable=] static const u32 gk20a_runcontrol_whitelist_ranges_count = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/nvgpu/gk20a/regops_gk20a.c:366:40: error: 'gk20a_qctl_whitelist_ranges' defined but not used [-Werror=unused-const-variable=] static const struct regop_offset_range gk20a_qctl_whitelist_ranges[] = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/nvgpu/gk20a/regops_gk20a.c:373:18: error: 'gk20a_qctl_whitelist_ranges_count' defined but not used [-Werror=unused-const-variable=] static const u32 gk20a_qctl_whitelist_ranges_count = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Marcel Ziswiler Acked-by: Max Krummenacher --- drivers/gpu/nvgpu/gk20a/regops_gk20a.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c index 231c32a52dd1..18a64e1fabef 100644 --- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c @@ -341,16 +341,6 @@ static const u32 gk20a_runcontrol_whitelist[] = { static const u32 gk20a_runcontrol_whitelist_count = ARRAY_SIZE(gk20a_runcontrol_whitelist); -static const struct regop_offset_range gk20a_runcontrol_whitelist_ranges[] = { - { 0x00419e10, 1 }, - { 0x0041c610, 1 }, - { 0x00501e10, 1 }, - { 0x00504610, 1 }, -}; -static const u32 gk20a_runcontrol_whitelist_ranges_count = - ARRAY_SIZE(gk20a_runcontrol_whitelist_ranges); - - /* quad ctl */ static const u32 gk20a_qctl_whitelist[] = { 0x00504670, @@ -366,16 +356,6 @@ static const u32 gk20a_qctl_whitelist[] = { static const u32 gk20a_qctl_whitelist_count = ARRAY_SIZE(gk20a_qctl_whitelist); -static const struct regop_offset_range gk20a_qctl_whitelist_ranges[] = { - { 0x00504670, 1 }, - { 0x00504730, 4 }, -}; -static const u32 gk20a_qctl_whitelist_ranges_count = - ARRAY_SIZE(gk20a_qctl_whitelist_ranges); - - - - static bool validate_reg_ops(struct dbg_session_gk20a *dbg_s, u32 *ctx_rd_count, u32 *ctx_wr_count, struct nvhost_dbg_gpu_reg_op *ops, -- cgit v1.2.3