Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH RESEND] [MIPS]: multi-statement if() seems to be missing braces
@ 2008-05-13 11:50 Ilpo Järvinen
  2008-05-13 23:25 ` Ralf Baechle
  0 siblings, 1 reply; 10+ messages in thread
From: Ilpo Järvinen @ 2008-05-13 11:50 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Andrew Morton

[-- Attachment #1: Type: TEXT/PLAIN, Size: 881 bytes --]

In case this is a genuine bug, somebody else more familiar
with that stuff should evaluate it's effects (I just found it
by some shell pipeline and it seems suspicious looking).

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---

...Added Cc Andrew as I didn't get any response last time.

 include/asm-mips/pgtable.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h
index 2f597ee..6a0edf7 100644
--- a/include/asm-mips/pgtable.h
+++ b/include/asm-mips/pgtable.h
@@ -239,9 +239,10 @@ static inline pte_t pte_mkdirty(pte_t pte)
 static inline pte_t pte_mkyoung(pte_t pte)
 {
 	pte.pte_low |= _PAGE_ACCESSED;
-	if (pte.pte_low & _PAGE_READ)
+	if (pte.pte_low & _PAGE_READ) {
 		pte.pte_low  |= _PAGE_SILENT_READ;
 		pte.pte_high |= _PAGE_SILENT_READ;
+	}
 	return pte;
 }
 #else
-- 
1.5.2.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-05-15 13:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13 11:50 [PATCH RESEND] [MIPS]: multi-statement if() seems to be missing braces Ilpo Järvinen
2008-05-13 23:25 ` Ralf Baechle
2008-05-14  1:02   ` Andrew Morton
2008-05-14 15:08     ` Ralf Baechle
2008-05-14 15:58       ` Enabling JFFS as Root FS Ramgopal Kota
2008-05-14 18:26         ` Problem with binutils Anoop P.A.
2008-05-14 18:26           ` Anoop P.A.
2008-05-15 13:57           ` Problem with MIPS cross toolchain Anoop P.A.
2008-05-15 13:57             ` Anoop P.A.
2008-05-15  7:21         ` Enabling JFFS as Root FS Freddy Spierenburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox