migrate: stop using 0 as NULL pointer
Subsystems (2)
PATCH 1/1 migrate: stop using 0 as NULL pointer
mm/migrate.c:1198:24: warning: Using plain integer as NULL pointer
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/migrate.c +1 -1
@@ -1195,7 +1195,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);
Signature · 1 line
2.20.1.7.g153144c
Quoted 14 lines · Yang Li
mm/migrate.c:1198:24: warning: Using plain integer as NULL pointerReported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/migrate.c +0
-0
mm/migrate.c static int unmap_and_move(new_page_t get_new_page, · line 1201
Quoted 8 lines
mm/migrate.c +1
-1@@ -1195,7 +1195,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);
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Thanks, David / dhildenb