[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20230603142951.801485-1-linmiaohe@huawei.com>
Date: Sat, 3 Jun 2023 22:29:51 +0800
From: Miaohe Lin <linmiaohe@...wei.com>
To: <tony.luck@...el.com>, <bp@...en8.de>
CC: <linux-edac@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linmiaohe@...wei.com>
Subject: [PATCH] RAS/CEC: remove unused del_lru_elem()
The function del_lru_elem() is not used. Remove it.
Signed-off-by: Miaohe Lin <linmiaohe@...wei.com>
---
drivers/ras/cec.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c
index 321af498ee11..fa2fa596219c 100644
--- a/drivers/ras/cec.c
+++ b/drivers/ras/cec.c
@@ -261,25 +261,6 @@ static u64 del_lru_elem_unlocked(struct ce_array *ca)
return PFN(ca->array[min_idx]);
}
-/*
- * We return the 0th pfn in the error case under the assumption that it cannot
- * be poisoned and excessive CEs in there are a serious deal anyway.
- */
-static u64 __maybe_unused del_lru_elem(void)
-{
- struct ce_array *ca = &ce_arr;
- u64 pfn;
-
- if (!ca->n)
- return 0;
-
- mutex_lock(&ce_mutex);
- pfn = del_lru_elem_unlocked(ca);
- mutex_unlock(&ce_mutex);
-
- return pfn;
-}
-
static bool sanity_check(struct ce_array *ca)
{
bool ret = false;
--
2.27.0
Powered by blists - more mailing lists