Skip to contentSkip to conversation

migrate-stop-using-0-as-null-pointer.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 1, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/migrate.c: stop using 0 as NULL pointer
has been removed from the -mm tree. Its filename was
migrate-stop-using-0-as-null-pointer.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Yang Li <[email protected]>
Subject: mm/migrate.c: stop using 0 as NULL pointer
Date: Wed, 16 Nov 2022 09:23:45 +0800

mm/migrate.c:1198:24: warning: Using plain integer as NULL pointer

---

 mm/migrate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/migrate.c renamed from mm/migrate.c~migrate-stop-using-0-as-null-pointer +1 -1
@@ -1180,7 +1180,7 @@ static int unmap_and_move(new_page_t get
 		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);

_

Patches currently in -mm which might be from [email protected] are

lib-objpool-added-ring-array-based-lockless-mpmc-queue-fix.patch