aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Li <[email protected]>2022-11-16 09:23:45 +0800
committerAndrew Morton <[email protected]>2022-11-30 15:59:00 -0800
commit4c74b65f478dc9353780a6be17fc82f1b06cea80 (patch)
tree78e18ed4a4de4698a171c7594d7ece7cfd93f8b2
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/[email protected] Signed-off-by: Yang Li <[email protected]> Reported-by: Abaci Robot <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-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);