From: Ilpo Järvinen Date: Fri, 2 May 2008 11:08:20 +0000 (+0300) Subject: [MIPS] Add missing braces to pte_mkyoung X-Git-Tag: v2.6.26-rc6~97^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=057229f9efc7ebebd3ce0496195ed46df631f383;p=linux-2.6 [MIPS] Add missing braces to pte_mkyoung Only the version pte_mkyoung for 36-bit pagetables on 32-bit hw was affected and with this bug being around since November 29, 2004 there is evidence to suport the assumption it was benign ;-) Signed-off-by: Ilpo Järvinen Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index 2f597eea44..6a0edf72ff 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