All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20200324104005.11279-4-will@kernel.org>

diff --git a/a/1.txt b/N1/1.txt
index aba4bb2..b444f1c 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -92,8 +92,8 @@ index 7fa096422bd0..dfd883b53054 100644
 +	pte_t *ptep;
  	struct page *page;
  
--	if ((pte = (unsigned long)pte_alloc_one_kernel(mm)) = 0)
-+	if ((ptep = pte_alloc_one_kernel(mm)) = 0)
+-	if ((pte = (unsigned long)pte_alloc_one_kernel(mm)) == 0)
++	if ((ptep = pte_alloc_one_kernel(mm)) == 0)
  		return NULL;
 -	page = pfn_to_page(__nocache_pa(pte) >> PAGE_SHIFT);
 +	page = pfn_to_page(__nocache_pa((unsigned long)ptep) >> PAGE_SHIFT);
@@ -112,7 +112,7 @@ index 7fa096422bd0..dfd883b53054 100644
 -
 -	pgtable_pte_page_dtor(pte);
 -	p = (unsigned long)page_address(pte);	/* Cached address (for test) */
--	if (p = 0)
+-	if (p == 0)
 -		BUG();
 -	p = page_to_pfn(pte) << PAGE_SHIFT;	/* Physical address */
 +	struct page *page;
diff --git a/a/content_digest b/N1/content_digest
index 83f60cb..636c6a4 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -106,8 +106,8 @@
  "+\tpte_t *ptep;\n"
  " \tstruct page *page;\n"
  " \n"
- "-\tif ((pte = (unsigned long)pte_alloc_one_kernel(mm)) = 0)\n"
- "+\tif ((ptep = pte_alloc_one_kernel(mm)) = 0)\n"
+ "-\tif ((pte = (unsigned long)pte_alloc_one_kernel(mm)) == 0)\n"
+ "+\tif ((ptep = pte_alloc_one_kernel(mm)) == 0)\n"
  " \t\treturn NULL;\n"
  "-\tpage = pfn_to_page(__nocache_pa(pte) >> PAGE_SHIFT);\n"
  "+\tpage = pfn_to_page(__nocache_pa((unsigned long)ptep) >> PAGE_SHIFT);\n"
@@ -126,7 +126,7 @@
  "-\n"
  "-\tpgtable_pte_page_dtor(pte);\n"
  "-\tp = (unsigned long)page_address(pte);\t/* Cached address (for test) */\n"
- "-\tif (p = 0)\n"
+ "-\tif (p == 0)\n"
  "-\t\tBUG();\n"
  "-\tp = page_to_pfn(pte) << PAGE_SHIFT;\t/* Physical address */\n"
  "+\tstruct page *page;\n"
@@ -142,4 +142,4 @@
  "-- \n"
  2.20.1
 
-461d52ebd25907538f8dcb62d7ee2e31f7f4c9473213f5de89e0022643e55cdd
+827c6e2ed479c074256fc3391c77b4c914f932de9c44e69d47b36bac6585427e

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.