From 8978f14a99a3eacb5504b986737bd91ef0ed4fa2 Mon Sep 17 00:00:00 2001 From: Joseph Qi Date: Thu, 5 Dec 2019 19:35:25 +0800 Subject: [PATCH] alios: mm/thp: remove unused variable 'pgdata' in split_huge_page_to_list() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following build warning: mm/huge_memory.c: In function ‘split_huge_page_to_list’: mm/huge_memory.c:2656:22: warning: unused variable ‘pgdata’ [-Wunused-variable] struct pglist_data *pgdata = NODE_DATA(page_to_nid(head)); ^ Fixes: 6c52af5ee5c5 ("mm: thp: extract split_queue_* into a struct") Signed-off-by: Joseph Qi Acked-by: Xunlei Pang Reviewed-by: Yang Shi --- mm/huge_memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index e5269e7d0d40..c43c3dc4b52f 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2649,7 +2649,6 @@ bool can_split_huge_page(struct page *page, int *pextra_pins) int split_huge_page_to_list(struct page *page, struct list_head *list) { struct page *head = compound_head(page); - struct pglist_data *pgdata = NODE_DATA(page_to_nid(head)); struct deferred_split *ds_queue = get_deferred_split_queue(page); struct anon_vma *anon_vma = NULL; struct address_space *mapping = NULL; -- GitLab