2023-12-28 06:28:13

by Haifeng Xu

[permalink] [raw]
Subject: [PATCH 2/2] mm: list_lru: remove unused macro list_lru_init_key()

list_lru_init_key() isn't used by anyone, remove it to clean up.

Signed-off-by: Haifeng Xu <[email protected]>
---
include/linux/list_lru.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/include/linux/list_lru.h b/include/linux/list_lru.h
index b35968ee9fb5..57a445a5001f 100644
--- a/include/linux/list_lru.h
+++ b/include/linux/list_lru.h
@@ -62,8 +62,6 @@ int __list_lru_init(struct list_lru *lru, bool memcg_aware,

#define list_lru_init(lru) \
__list_lru_init((lru), false, NULL, NULL)
-#define list_lru_init_key(lru, key) \
- __list_lru_init((lru), false, (key), NULL)
#define list_lru_init_memcg(lru, shrinker) \
__list_lru_init((lru), true, NULL, shrinker)

--
2.25.1



2024-01-03 01:54:09

by Roman Gushchin

[permalink] [raw]
Subject: Re: [PATCH 2/2] mm: list_lru: remove unused macro list_lru_init_key()

On Thu, Dec 28, 2023 at 06:27:15AM +0000, Haifeng Xu wrote:
> list_lru_init_key() isn't used by anyone, remove it to clean up.
>
> Signed-off-by: Haifeng Xu <[email protected]>

Acked-by: Roman Gushchin <[email protected]>