Skip to contentSkip to conversation

mm-rmap-remove-redundant-variable-cend.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/rmap.c: remove redundant variable cend
has been removed from the -mm tree. Its filename was
mm-rmap-remove-redundant-variable-cend.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Colin Ian King <[email protected]>
Subject: mm/rmap.c: remove redundant variable cend

Variable cend is set but never read, hence it is redundant and can be removed.

Cleans up clang build warning: Value stored to 'cend' is never read

Fixes 369ea8242c0f ("mm/rmap: update to new mmu_notifier semantic v2")

---

 mm/rmap.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
mm/rmap.c renamed from mm/rmap.c~mm-rmap-remove-redundant-variable-cend +1 -3
diff -puN mm/rmap.c~mm-rmap-remove-redundant-variable-cend mm/rmap.c
@@ -899,7 +899,7 @@ static bool page_mkclean_one(struct page
 	mmu_notifier_invalidate_range_start(vma->vm_mm, start, end);
 
 	while (page_vma_mapped_walk(&pvmw)) {
-		unsigned long cstart, cend;
+		unsigned long cstart;
 		int ret = 0;
 
 		cstart = address = pvmw.address;
@@ -915,7 +915,6 @@ static bool page_mkclean_one(struct page
 			entry = pte_wrprotect(entry);
 			entry = pte_mkclean(entry);
 			set_pte_at(vma->vm_mm, address, pte, entry);
-			cend = cstart + PAGE_SIZE;
 			ret = 1;
 		} else {
 #ifdef CONFIG_TRANSPARENT_HUGE_PAGECACHE
@@ -931,7 +930,6 @@ static bool page_mkclean_one(struct page
 			entry = pmd_mkclean(entry);
 			set_pmd_at(vma->vm_mm, address, pmd, entry);
 			cstart &= PMD_MASK;
-			cend = cstart + PMD_SIZE;
 			ret = 1;
 #else
 			/* unexpected pmd-mapped page? */

_

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

fat-remove-redundant-assignment-of-0-to-slots.patch