Skip to content
  • Paul Burton's avatar
    MIPS: mm: Standardise on _PAGE_NO_READ, drop _PAGE_READ · 780602d7
    Paul Burton authored
    Ever since support for RI/XI was implemented by commit 6dd9344c
    
    
    ("MIPS: Implement Read Inhibit/eXecute Inhibit") we've had a mixture of
    _PAGE_READ & _PAGE_NO_READ bits. Rather than keep both around, switch
    away from using _PAGE_READ to determine page presence & instead invert
    the use to _PAGE_NO_READ. Wherever we formerly had no definition for
    _PAGE_NO_READ, change what was _PAGE_READ to _PAGE_NO_READ. The end
    result is that we consistently use _PAGE_NO_READ to determine whether a
    page is readable, regardless of whether RI/XI is implemented.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    Reviewed-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Cc: David Daney <david.daney@cavium.com>
    Cc: Huacai Chen <chenhc@lemote.com>
    Cc: Maciej W. Rozycki <macro@linux-mips.org>
    Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
    Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Alex Smith <alex.smith@imgtec.com>
    Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13116/
    
    
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    780602d7