diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-19 16:02:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-20 02:27:40 -0400 |
commit | 857814990466cbdff5746f6116b2556dcc4fd923 (patch) | |
tree | 415cde42b676e7c93a3d732581d32e2944aca28f /arch/sparc/mm/srmmu.c | |
parent | 3d5f7d37c8b4cdd564741704d8bb22afd80402ef (diff) |
sparc32: drop unused inline functions in srmmu.c
When decelared inline the compiler does not warn
about unused functions.
But they are not used so drop them.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/srmmu.c')
-rw-r--r-- | arch/sparc/mm/srmmu.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c index a02c56a4bdfb..8e97e0305b01 100644 --- a/arch/sparc/mm/srmmu.c +++ b/arch/sparc/mm/srmmu.c | |||
@@ -105,21 +105,9 @@ void *srmmu_nocache_pool; | |||
105 | void *srmmu_nocache_bitmap; | 105 | void *srmmu_nocache_bitmap; |
106 | static struct bit_map srmmu_nocache_map; | 106 | static struct bit_map srmmu_nocache_map; |
107 | 107 | ||
108 | static inline int srmmu_pte_none(pte_t pte) | ||
109 | { return !(pte_val(pte) & 0xFFFFFFF); } | ||
110 | |||
111 | static inline int srmmu_pmd_none(pmd_t pmd) | 108 | static inline int srmmu_pmd_none(pmd_t pmd) |
112 | { return !(pmd_val(pmd) & 0xFFFFFFF); } | 109 | { return !(pmd_val(pmd) & 0xFFFFFFF); } |
113 | 110 | ||
114 | static inline pte_t srmmu_pte_wrprotect(pte_t pte) | ||
115 | { return __pte(pte_val(pte) & ~SRMMU_WRITE);} | ||
116 | |||
117 | static inline pte_t srmmu_pte_mkclean(pte_t pte) | ||
118 | { return __pte(pte_val(pte) & ~SRMMU_DIRTY);} | ||
119 | |||
120 | static inline pte_t srmmu_pte_mkold(pte_t pte) | ||
121 | { return __pte(pte_val(pte) & ~SRMMU_REF);} | ||
122 | |||
123 | /* XXX should we hyper_flush_whole_icache here - Anton */ | 111 | /* XXX should we hyper_flush_whole_icache here - Anton */ |
124 | static inline void srmmu_ctxd_set(ctxd_t *ctxp, pgd_t *pgdp) | 112 | static inline void srmmu_ctxd_set(ctxd_t *ctxp, pgd_t *pgdp) |
125 | { set_pte((pte_t *)ctxp, (SRMMU_ET_PTD | (__nocache_pa((unsigned long) pgdp) >> 4))); } | 113 | { set_pte((pte_t *)ctxp, (SRMMU_ET_PTD | (__nocache_pa((unsigned long) pgdp) >> 4))); } |
@@ -148,13 +136,6 @@ void pmd_populate(struct mm_struct *mm, pmd_t *pmdp, struct page *ptep) | |||
148 | } | 136 | } |
149 | } | 137 | } |
150 | 138 | ||
151 | static inline pte_t srmmu_pte_modify(pte_t pte, pgprot_t newprot) | ||
152 | { return __pte((pte_val(pte) & SRMMU_CHG_MASK) | pgprot_val(newprot)); } | ||
153 | |||
154 | /* to find an entry in a top-level page table... */ | ||
155 | static inline pgd_t *srmmu_pgd_offset(struct mm_struct * mm, unsigned long address) | ||
156 | { return mm->pgd + (address >> SRMMU_PGDIR_SHIFT); } | ||
157 | |||
158 | /* Find an entry in the third-level page table.. */ | 139 | /* Find an entry in the third-level page table.. */ |
159 | pte_t *pte_offset_kernel(pmd_t * dir, unsigned long address) | 140 | pte_t *pte_offset_kernel(pmd_t * dir, unsigned long address) |
160 | { | 141 | { |
@@ -805,13 +786,6 @@ static unsigned long __init map_spbank(unsigned long vbase, int sp_entry) | |||
805 | return vstart; | 786 | return vstart; |
806 | } | 787 | } |
807 | 788 | ||
808 | static inline void memprobe_error(char *msg) | ||
809 | { | ||
810 | prom_printf(msg); | ||
811 | prom_printf("Halting now...\n"); | ||
812 | prom_halt(); | ||
813 | } | ||
814 | |||
815 | static inline void map_kernel(void) | 789 | static inline void map_kernel(void) |
816 | { | 790 | { |
817 | int i; | 791 | int i; |