From 9ea9e641c56a947d0321e4696914b07b7f21ba87 Mon Sep 17 00:00:00 2001 From: Joseph Qi Date: Thu, 6 Feb 2020 11:56:30 +0800 Subject: [PATCH 0632/2944] alinux: mm: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To fix the following build warning: mm/memcontrol.c: In function ‘mem_cgroup_move_account’: mm/memcontrol.c:5604:6: warning: unused variable ‘nid’ [-Wunused-variable] int nid = page_to_nid(page); ^ Fixes: 962985098adc ("mm: thp: don't need care deferred split queue in memcg charge move path") Signed-off-by: Joseph Qi Acked-by: Yang Shi --- mm/memcontrol.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d8636b4..2cd07aa 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -5601,7 +5601,6 @@ static int mem_cgroup_move_account(struct page *page, unsigned int nr_pages = compound ? hpage_nr_pages(page) : 1; int ret; bool anon; - int nid = page_to_nid(page); VM_BUG_ON(from == to); VM_BUG_ON_PAGE(PageLRU(page), page); -- 1.8.3.1