@@ -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;
The function del_lru_elem() is not used. Remove it. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> --- drivers/ras/cec.c | 19 ------------------- 1 file changed, 19 deletions(-)