[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y9PVi7WoaBu8KdR2@redhat.com>
Date: Fri, 27 Jan 2023 08:45:47 -0500
From: Joe Lawrence <joe.lawrence@...hat.com>
To: Song Liu <song@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-modules@...r.kernel.org,
live-patching@...r.kernel.org, x86@...nel.org,
Josh Poimboeuf <jpoimboe@...hat.com>,
Petr Mladek <pmladek@...e.com>
Subject: Re: [PATCH v11 1/2] x86/module: remove unused code in
__apply_relocate_add
On Wed, Jan 25, 2023 at 10:54:00AM -0800, Song Liu wrote:
> This "#if 0" block has been untouched for many years. Remove it to clean
> up the code.
>
> Suggested-by: Josh Poimboeuf <jpoimboe@...hat.com>
> Signed-off-by: Song Liu <song@...nel.org>
> Reviewed-by: Petr Mladek <pmladek@...e.com>
> ---
> arch/x86/kernel/module.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c
> index 705fb2a41d7d..1dee3ad82da2 100644
> --- a/arch/x86/kernel/module.c
> +++ b/arch/x86/kernel/module.c
> @@ -188,10 +188,6 @@ static int __apply_relocate_add(Elf64_Shdr *sechdrs,
> goto invalid_relocation;
> val -= (u64)loc;
> write(loc, &val, 4);
> -#if 0
> - if ((s64)val != *(s32 *)loc)
> - goto overflow;
> -#endif
> break;
> case R_X86_64_PC64:
> if (*(u64 *)loc != 0)
> --
> 2.30.2
>
Reviewed-by: Joe Lawrence <joe.lawrence@...hat.com>
--
Joe
Powered by blists - more mailing lists