aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-05-12 16:48:10 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-12 16:48:10 -0400
commitf755f77a3a8ca03102d09e7f8bd84e020a6eeda4 (patch)
tree4fc4710011149a7c035ad4fc59200d4a096eaf5a /arch/sparc
parentc78896f00d0d0715c3043af2f3f4d098fc6ab6e4 (diff)
sparc32: Un-btfixup pte_{write,dirty,young}i
And we can certainly get rid of the const function attributes, there is no way that's needed any longer and no other arch uses this kind of annotation here. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/pgtable_32.h13
-rw-r--r--arch/sparc/mm/srmmu.c3
2 files changed, 3 insertions, 13 deletions
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h
index 62e34d909c36..4b46396ae4fb 100644
--- a/arch/sparc/include/asm/pgtable_32.h
+++ b/arch/sparc/include/asm/pgtable_32.h
@@ -207,26 +207,19 @@ static inline void pgd_clear(pgd_t *pgdp)
207 * The following only work if pte_present() is true. 207 * The following only work if pte_present() is true.
208 * Undefined behaviour if not.. 208 * Undefined behaviour if not..
209 */ 209 */
210BTFIXUPDEF_HALF(pte_writei)
211BTFIXUPDEF_HALF(pte_dirtyi)
212BTFIXUPDEF_HALF(pte_youngi)
213
214static int pte_write(pte_t pte) __attribute_const__;
215static inline int pte_write(pte_t pte) 210static inline int pte_write(pte_t pte)
216{ 211{
217 return pte_val(pte) & BTFIXUP_HALF(pte_writei); 212 return pte_val(pte) & SRMMU_WRITE;
218} 213}
219 214
220static int pte_dirty(pte_t pte) __attribute_const__;
221static inline int pte_dirty(pte_t pte) 215static inline int pte_dirty(pte_t pte)
222{ 216{
223 return pte_val(pte) & BTFIXUP_HALF(pte_dirtyi); 217 return pte_val(pte) & SRMMU_DIRTY;
224} 218}
225 219
226static int pte_young(pte_t pte) __attribute_const__;
227static inline int pte_young(pte_t pte) 220static inline int pte_young(pte_t pte)
228{ 221{
229 return pte_val(pte) & BTFIXUP_HALF(pte_youngi); 222 return pte_val(pte) & SRMMU_REF;
230} 223}
231 224
232/* 225/*
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c
index 224db00447c7..b01c735b5815 100644
--- a/arch/sparc/mm/srmmu.c
+++ b/arch/sparc/mm/srmmu.c
@@ -2073,9 +2073,6 @@ void __init load_mmu(void)
2073 BTFIXUPSET_CALL(free_pgd_fast, srmmu_free_pgd_fast, BTFIXUPCALL_NORM); 2073 BTFIXUPSET_CALL(free_pgd_fast, srmmu_free_pgd_fast, BTFIXUPCALL_NORM);
2074 BTFIXUPSET_CALL(get_pgd_fast, srmmu_get_pgd_fast, BTFIXUPCALL_NORM); 2074 BTFIXUPSET_CALL(get_pgd_fast, srmmu_get_pgd_fast, BTFIXUPCALL_NORM);
2075 2075
2076 BTFIXUPSET_HALF(pte_writei, SRMMU_WRITE);
2077 BTFIXUPSET_HALF(pte_dirtyi, SRMMU_DIRTY);
2078 BTFIXUPSET_HALF(pte_youngi, SRMMU_REF);
2079 BTFIXUPSET_HALF(pte_filei, SRMMU_FILE); 2076 BTFIXUPSET_HALF(pte_filei, SRMMU_FILE);
2080 BTFIXUPSET_HALF(pte_wrprotecti, SRMMU_WRITE); 2077 BTFIXUPSET_HALF(pte_wrprotecti, SRMMU_WRITE);
2081 BTFIXUPSET_HALF(pte_mkcleani, SRMMU_DIRTY); 2078 BTFIXUPSET_HALF(pte_mkcleani, SRMMU_DIRTY);