diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 06:59:30 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-01 04:00:22 -0500 |
commit | 7034228792cc561e79ff8600f02884bd4c80e287 (patch) | |
tree | 89b77af37d087d9de236fc5d21f60bf552d0a2c6 /arch/mips/kernel/module.c | |
parent | 405ab01c70e18058d9c01a1256769a61fc65413e (diff) |
MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/module.c')
-rw-r--r-- | arch/mips/kernel/module.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/kernel/module.c b/arch/mips/kernel/module.c index 07ff5812ffaf..977a623d9253 100644 --- a/arch/mips/kernel/module.c +++ b/arch/mips/kernel/module.c | |||
@@ -79,7 +79,7 @@ static int apply_r_mips_26_rel(struct module *me, u32 *location, Elf_Addr v) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | *location = (*location & ~0x03ffffff) | | 81 | *location = (*location & ~0x03ffffff) | |
82 | ((*location + (v >> 2)) & 0x03ffffff); | 82 | ((*location + (v >> 2)) & 0x03ffffff); |
83 | 83 | ||
84 | return 0; | 84 | return 0; |
85 | } | 85 | } |
@@ -122,7 +122,7 @@ static int apply_r_mips_lo16_rel(struct module *me, u32 *location, Elf_Addr v) | |||
122 | struct mips_hi16 *l; | 122 | struct mips_hi16 *l; |
123 | Elf_Addr val, vallo; | 123 | Elf_Addr val, vallo; |
124 | 124 | ||
125 | /* Sign extend the addend we extract from the lo insn. */ | 125 | /* Sign extend the addend we extract from the lo insn. */ |
126 | vallo = ((insnlo & 0xffff) ^ 0x8000) - 0x8000; | 126 | vallo = ((insnlo & 0xffff) ^ 0x8000) - 0x8000; |
127 | 127 | ||
128 | if (me->arch.r_mips_hi16_list != NULL) { | 128 | if (me->arch.r_mips_hi16_list != NULL) { |
@@ -165,7 +165,7 @@ static int apply_r_mips_lo16_rel(struct module *me, u32 *location, Elf_Addr v) | |||
165 | } | 165 | } |
166 | 166 | ||
167 | /* | 167 | /* |
168 | * Ok, we're done with the HI16 relocs. Now deal with the LO16. | 168 | * Ok, we're done with the HI16 relocs. Now deal with the LO16. |
169 | */ | 169 | */ |
170 | val = v + vallo; | 170 | val = v + vallo; |
171 | insnlo = (insnlo & ~0xffff) | (val & 0xffff); | 171 | insnlo = (insnlo & ~0xffff) | (val & 0xffff); |
@@ -230,7 +230,7 @@ int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, | |||
230 | } | 230 | } |
231 | 231 | ||
232 | /* | 232 | /* |
233 | * Normally the hi16 list should be deallocated at this point. A | 233 | * Normally the hi16 list should be deallocated at this point. A |
234 | * malformed binary however could contain a series of R_MIPS_HI16 | 234 | * malformed binary however could contain a series of R_MIPS_HI16 |
235 | * relocations not followed by a R_MIPS_LO16 relocation. In that | 235 | * relocations not followed by a R_MIPS_LO16 relocation. In that |
236 | * case, free up the list and return an error. | 236 | * case, free up the list and return an error. |
@@ -261,7 +261,7 @@ const struct exception_table_entry *search_module_dbetables(unsigned long addr) | |||
261 | spin_unlock_irqrestore(&dbe_lock, flags); | 261 | spin_unlock_irqrestore(&dbe_lock, flags); |
262 | 262 | ||
263 | /* Now, if we found one, we are running inside it now, hence | 263 | /* Now, if we found one, we are running inside it now, hence |
264 | we cannot unload the module, hence no refcnt needed. */ | 264 | we cannot unload the module, hence no refcnt needed. */ |
265 | return e; | 265 | return e; |
266 | } | 266 | } |
267 | 267 | ||