ANDROID: mm: page_pinner: fix build warning
Fix build warning below.
> All warnings (new ones prefixed by >>):
>
> >> mm/page_pinner.c:304:22: warning: variable 'page_pinner' set but not used [-Wunused-but-set-variable]
> struct page_pinner *page_pinner;
> ^
> 1 warning generated.
>
Fixes: ddc4a48797
("ANDROID: mm: page_pinner: introduce failure_tracking feature")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I02cfd98f9c33745920f883d5e2e2bc2730f662a2
This commit is contained in:

committed by
Suren Baghdasaryan

parent
fe75d58387
commit
4ebb639f0d
@@ -328,7 +328,6 @@ void __dump_page_pinner(struct page *page)
|
||||
void __page_pinner_migration_failed(struct page *page)
|
||||
{
|
||||
struct page_ext *page_ext = lookup_page_ext(page);
|
||||
struct page_pinner *page_pinner;
|
||||
struct captured_pinner record;
|
||||
unsigned long flags;
|
||||
unsigned int idx;
|
||||
@@ -336,7 +335,6 @@ void __page_pinner_migration_failed(struct page *page)
|
||||
if (unlikely(!page_ext))
|
||||
return;
|
||||
|
||||
page_pinner = get_page_pinner(page_ext);
|
||||
if (!test_bit(PAGE_EXT_PINNER_MIGRATION_FAILED, &page_ext->flags))
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user