Skip to content

Commit a49dc42

Browse files
Maciej W. Rozyckiralfbaechle
authored andcommitted
MIPS: ELF: Drop `get_fp_abi'
Commit 46490b5 [MIPS: kernel: elf: Improve the overall ABI and FPU mode checks] reduced `get_fp_abi' to an elaborate pass-through. Drop it then. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: Markos Chandras <markos.chandras@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9677/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent b844bc7 commit a49dc42

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

‎arch/mips/kernel/elf.c‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,6 @@ int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf,
131131
return 0;
132132
}
133133

134-
static inline unsigned get_fp_abi(int in_abi)
135-
{
136-
/* If the ABI requirement is provided, simply return that */
137-
if (in_abi != MIPS_ABI_FP_UNKNOWN)
138-
return in_abi;
139-
140-
/* Unknown ABI */
141-
return MIPS_ABI_FP_UNKNOWN;
142-
}
143-
144134
int arch_check_elf(void *_ehdr, bool has_interpreter,
145135
struct arch_elf_state *state)
146136
{
@@ -151,10 +141,10 @@ int arch_check_elf(void *_ehdr, bool has_interpreter,
151141
if (!config_enabled(CONFIG_MIPS_O32_FP64_SUPPORT))
152142
return 0;
153143

154-
fp_abi = get_fp_abi(state->fp_abi);
144+
fp_abi = state->fp_abi;
155145

156146
if (has_interpreter) {
157-
interp_fp_abi = get_fp_abi(state->interp_fp_abi);
147+
interp_fp_abi = state->interp_fp_abi;
158148

159149
abi0 = min(fp_abi, interp_fp_abi);
160150
abi1 = max(fp_abi, interp_fp_abi);

0 commit comments

Comments
 (0)