Skip to contentSkip to conversation

apei/ghes: remove unused ghes_estatus_pool_size_request

PATCH Applied Miaohe Lin 2 participants 2 messages May 27, 2023 – Jun 5, 2023

Subsystems (2)
lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 apei/ghes: remove unused ghes_estatus_pool_size_request

ghes_estatus_pool_size_request is unused now. Remove it.

---
 drivers/acpi/apei/ghes.c | 2 --
 1 file changed, 2 deletions(-)
drivers/acpi/apei/ghes.c +0 -2
index 34ad071a64e9..a4148a7d3afe 100644
@@ -152,7 +152,6 @@ struct ghes_vendor_record_entry {
 };
 
 static struct gen_pool *ghes_estatus_pool;
-static unsigned long ghes_estatus_pool_size_request;
 
 static struct ghes_estatus_cache __rcu *ghes_estatus_caches[GHES_ESTATUS_CACHES_SIZE];
 static atomic_t ghes_estatus_cache_alloced;
@@ -191,7 +190,6 @@ int ghes_estatus_pool_init(unsigned int num_ghes)
 	len = GHES_ESTATUS_CACHE_AVG_SIZE * GHES_ESTATUS_CACHE_ALLOCED_MAX;
 	len += (num_ghes * GHES_ESOURCE_PREALLOC_MAX_SIZE);
 
-	ghes_estatus_pool_size_request = PAGE_ALIGN(len);
 	addr = (unsigned long)vmalloc(PAGE_ALIGN(len));
 	if (!addr)
 		goto err_pool_alloc;
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Miaohe Lin

ghes_estatus_pool_size_request is unused now. Remove it.

Applied as 6.5 material, thanks!

Quoted 27 lines
---
 drivers/acpi/apei/ghes.c | 2 --
 1 file changed, 2 deletions(-)
drivers/acpi/apei/ghes.c +0 -3
index 34ad071a64e9..a4148a7d3afe 100644
@@ -152,7 +152,6 @@ struct ghes_vendor_record_entry {
 };
 
 static struct gen_pool *ghes_estatus_pool;
-static unsigned long ghes_estatus_pool_size_request;
 
 static struct ghes_estatus_cache __rcu *ghes_estatus_caches[GHES_ESTATUS_CACHES_SIZE];
 static atomic_t ghes_estatus_cache_alloced;
@@ -191,7 +190,6 @@ int ghes_estatus_pool_init(unsigned int num_ghes)
        len = GHES_ESTATUS_CACHE_AVG_SIZE * GHES_ESTATUS_CACHE_ALLOCED_MAX;
        len += (num_ghes * GHES_ESOURCE_PREALLOC_MAX_SIZE);
 
-       ghes_estatus_pool_size_request = PAGE_ALIGN(len);
        addr = (unsigned long)vmalloc(PAGE_ALIGN(len));
        if (!addr)
                goto err_pool_alloc;
--

2.27.0