Skip to content

Commit

Permalink
mm/page_ext: remove unused variable in offline_page_ext
Browse files Browse the repository at this point in the history
Remove unused variable 'nid' in offline_page_ext().  This is not used
since the page_ext code inception.

Link: https://lkml.kernel.org/r/1659330397-11817-1-git-send-email-quic_charante@quicinc.com
Signed-off-by: Charan Teja Kalla <quic_charante@quicinc.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Pavan Kondeti <quic_pkondeti@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Charan Teja Kalla authored and Andrew Morton committed Sep 12, 2022
1 parent 9d0d946 commit 7b5a0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/page_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static int __meminit online_page_ext(unsigned long start_pfn,
}

static int __meminit offline_page_ext(unsigned long start_pfn,
unsigned long nr_pages, int nid)
unsigned long nr_pages)
{
unsigned long start, end, pfn;

Expand All @@ -362,11 +362,11 @@ static int __meminit page_ext_callback(struct notifier_block *self,
break;
case MEM_OFFLINE:
offline_page_ext(mn->start_pfn,
mn->nr_pages, mn->status_change_nid);
mn->nr_pages);
break;
case MEM_CANCEL_ONLINE:
offline_page_ext(mn->start_pfn,
mn->nr_pages, mn->status_change_nid);
mn->nr_pages);
break;
case MEM_GOING_OFFLINE:
break;
Expand Down

0 comments on commit 7b5a0b6

Please sign in to comment.