powerpc/mm: Define _PAGE_SOFT_DIRTY unconditionally
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 21 Mar 2017 17:29:57 +0000 (22:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 31 Mar 2017 12:09:51 +0000 (23:09 +1100)
Conditional PTE bit definition is confusing and results in coding error.

Reviewed-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h

index c39bc4cb92471e6953d05f961da59730f77443c4..4d4ff9a324f03451a896d502cf4260b42e7db00d 100644 (file)
 #define _RPAGE_RSV3            0x0400000000000000UL
 #define _RPAGE_RSV4            0x0200000000000000UL
 
-#ifdef CONFIG_MEM_SOFT_DIRTY
 #define _PAGE_SOFT_DIRTY       _RPAGE_SW3 /* software: software dirty tracking */
-#else
-#define _PAGE_SOFT_DIRTY       0x00000
-#endif
 #define _PAGE_SPECIAL          _RPAGE_SW2 /* software: special page */
 
 #define _PAGE_PTE              0x4000000000000000UL    /* distinguishes PTEs from pointers */