summaryrefslogtreecommitdiff
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2022-11-16 09:23:45 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-11-30 15:59:00 -0800
commit4c74b65f478dc9353780a6be17fc82f1b06cea80 (patch)
tree78e18ed4a4de4698a171c7594d7ece7cfd93f8b2 /mm/migrate.c
parent931b6a8b36a2de3985eca27e758900e70cd99779 (diff)
mm/migrate.c: stop using 0 as NULL pointer
mm/migrate.c:1198:24: warning: Using plain integer as NULL pointer Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3080 Link: https://lkml.kernel.org/r/20221116012345.84870-1-yang.lee@linux.alibaba.com Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Reported-by: Abaci Robot <abaci@linux.alibaba.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 4aa3b6d4f67c..3be90351ad1d 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -1180,7 +1180,7 @@ static int unmap_and_move(new_page_t get_new_page,
return -ENOMEM;
dst = page_folio(newpage);
- dst->private = 0;
+ dst->private = NULL;
rc = __unmap_and_move(src, dst, force, mode);
if (rc == MIGRATEPAGE_SUCCESS)
set_page_owner_migrate_reason(&dst->page, reason);