From a56d93aa2fbb0a5de1a379ea9005405c90691767 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Thu, 11 Mar 2021 15:57:55 -0800 Subject: [PATCH] gpu: nvgpu: linux: remove definition of ecc_sysfs_stats_htable No one uses it anymore. Signed-off-by: Richard Zhao Change-Id: I0ea7f62e4e4e53d8da66bc00dcbe08a1f94e19a8 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2497936 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/module.c | 2 -- drivers/gpu/nvgpu/os/linux/os_linux.h | 4 +--- drivers/gpu/nvgpu/os/linux/pci.c | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index ac941cfcb..610a5c9d0 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -1596,8 +1596,6 @@ static int gk20a_probe(struct platform_device *dev) return -ENOMEM; } - hash_init(l->ecc_sysfs_stats_htable); - gk20a = &l->g; nvgpu_log_fn(gk20a, " "); diff --git a/drivers/gpu/nvgpu/os/linux/os_linux.h b/drivers/gpu/nvgpu/os/linux/os_linux.h index 5a851d9e6..7b534662e 100644 --- a/drivers/gpu/nvgpu/os/linux/os_linux.h +++ b/drivers/gpu/nvgpu/os/linux/os_linux.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -18,7 +18,6 @@ #define NVGPU_OS_LINUX_H #include -#include #include #include @@ -130,7 +129,6 @@ struct nvgpu_os_linux { struct dentry *debugfs_dump_ctxsw_stats; #endif - DECLARE_HASHTABLE(ecc_sysfs_stats_htable, 5); struct dev_ext_attribute *ecc_attrs; struct gk20a_cde_app cde_app; diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c index cb1ed848b..b1e72528a 100644 --- a/drivers/gpu/nvgpu/os/linux/pci.c +++ b/drivers/gpu/nvgpu/os/linux/pci.c @@ -515,8 +515,6 @@ static int nvgpu_pci_probe(struct pci_dev *pdev, return -ENOMEM; } - hash_init(l->ecc_sysfs_stats_htable); - g = &l->g; g->log_mask = NVGPU_DEFAULT_DBG_MASK;