[PATCH v3 6/7] kexec_elf: remove Elf_Rel macro

Christophe Leroy christophe.leroy at c-s.fr
Thu Jul 11 01:02:31 AEST 2019



Le 10/07/2019 à 16:29, Sven Schnelle a écrit :
> It wasn't used anywhere, so lets drop it.

And also, it is already defined in asm-generic/module.h

> 
> Signed-off-by: Sven Schnelle <svens at stackframe.org>

Reviewed-by: Christophe Leroy <christophe.leroy at c-s.fr>

> ---
>   kernel/kexec_elf.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/kernel/kexec_elf.c b/kernel/kexec_elf.c
> index 99e6d63b5dfc..b7e47ddd7cad 100644
> --- a/kernel/kexec_elf.c
> +++ b/kernel/kexec_elf.c
> @@ -8,10 +8,6 @@
>   #include <linux/slab.h>
>   #include <linux/types.h>
>   
> -#ifndef Elf_Rel
> -#define Elf_Rel		Elf64_Rel
> -#endif /* Elf_Rel */
> -
>   static inline bool elf_is_elf_file(const struct elfhdr *ehdr)
>   {
>   	return memcmp(ehdr->e_ident, ELFMAG, SELFMAG) == 0;
> 


More information about the Linuxppc-dev mailing list