From: Jianyun Gao <[email protected]> The 'cache' parameter is never used in the function body, remove it.
Signed-off-by: Jianyun Gao <[email protected]> --- drivers/md/dm-pcache/cache_gc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-pcache/cache_gc.c b/drivers/md/dm-pcache/cache_gc.c index 94f8b276a021..75b60c9c302a 100644 --- a/drivers/md/dm-pcache/cache_gc.c +++ b/drivers/md/dm-pcache/cache_gc.c @@ -6,14 +6,13 @@ /** * cache_key_gc - Releases the reference of a cache key segment. - * @cache: Pointer to the pcache_cache structure. * @key: Pointer to the cache key to be garbage collected. * * This function decrements the reference count of the cache segment * associated with the given key. If the reference count drops to zero, * the segment may be invalidated and reused. */ -static void cache_key_gc(struct pcache_cache *cache, struct pcache_cache_key *key) +static void cache_key_gc(struct pcache_cache_key *key) { cache_seg_put(key->cache_pos.cache_seg); } @@ -152,7 +151,7 @@ void pcache_cache_gc_fn(struct work_struct *work) return; } - cache_key_gc(cache, key); + cache_key_gc(key); } pcache_dev_debug(pcache, "gc advance: %u:%u %u\n", -- 2.34.1

