Skip to contentSkip to conversation

Fix a typo in pSeries_lpar_hpte_insert()

PATCH Superseded Denis Kirjanov 3 participants 3 messages Jul 22, 2013 – Jul 23, 2013 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix a typo in pSeries_lpar_hpte_insert()

Fix a typo in pSeries_lpar_hpte_insert()

---
 arch/powerpc/platforms/pseries/lpar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/lpar.c +1 -1
index 0da39fe..c4112ed 100644
@@ -136,7 +136,7 @@ static long pSeries_lpar_hpte_insert(unsigned long hpte_group,
 	flags = 0;
 
 	/* Make pHyp happy */
-	if ((rflags & _PAGE_NO_CACHE) & !(rflags & _PAGE_WRITETHRU))
+	if ((rflags & _PAGE_NO_CACHE) && !(rflags & _PAGE_WRITETHRU))
 		hpte_r &= ~_PAGE_COHERENT;
 	if (firmware_has_feature(FW_FEATURE_XCMO) && !(hpte_r & HPTE_R_N))
 		flags |= H_COALESCE_CAND;
Signature · 1 line
1.8.0.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Denis Kirjanov

Fix a typo in pSeries_lpar_hpte_insert()

looks good

We may want to add the commit that introduced the change ?

801eb73f45371accc78ca9d6d22d647eeb722c11

Quoted 19 lines
---
 arch/powerpc/platforms/pseries/lpar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/lpar.c +1 -1
index 0da39fe..c4112ed 100644
@@ -136,7 +136,7 @@ static long pSeries_lpar_hpte_insert(unsigned long hpte_group,
 	flags = 0;
 
 	/* Make pHyp happy */
-	if ((rflags & _PAGE_NO_CACHE) & !(rflags & _PAGE_WRITETHRU))
+	if ((rflags & _PAGE_NO_CACHE) && !(rflags & _PAGE_WRITETHRU))
 		hpte_r &= ~_PAGE_COHERENT;
 	if (firmware_has_feature(FW_FEATURE_XCMO) && !(hpte_r & HPTE_R_N))
 		flags |= H_COALESCE_CAND;
Signature · 1 line
1.8.0.2
#2 lore raw
Quoted 6 lines · Aneesh Kumar K.V
Quoted 3 lines · Denis Kirjanov

Fix a typo in pSeries_lpar_hpte_insert()

Quoted 7 lines

looks good

We may want to add the commit that introduced the change ?

801eb73f45371accc78ca9d6d22d647eeb722c11

Yes, as well as describe what the typo is, and what the implications are - ie. what was broken and is now fixed.

cheers