All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v10 1/2] x86/module: remove unused code in __apply_relocate_add
@ 2023-01-21  0:49 Song Liu
  2023-01-21  0:49 ` [PATCH v10 2/2] livepatch,x86: Clear relocation targets on a module removal Song Liu
  2023-01-24 12:24 ` [PATCH v10 1/2] x86/module: remove unused code in __apply_relocate_add Petr Mladek
  0 siblings, 2 replies; 9+ messages in thread
From: Song Liu @ 2023-01-21  0:49 UTC (permalink / raw)
  To: linux-kernel, linux-modules, live-patching; +Cc: x86, Song Liu, Josh Poimboeuf

This "#if 0" block has been untouched for many years. Remove it to clean
up the code.

Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
---
 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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-01-25 17:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-21  0:49 [PATCH v10 1/2] x86/module: remove unused code in __apply_relocate_add Song Liu
2023-01-21  0:49 ` [PATCH v10 2/2] livepatch,x86: Clear relocation targets on a module removal Song Liu
2023-01-24 12:24   ` Petr Mladek
2023-01-24 17:23     ` Josh Poimboeuf
2023-01-24 17:30       ` Song Liu
2023-01-24 17:56   ` Song Liu
2023-01-25  9:58   ` Christophe Leroy
2023-01-25 17:14     ` Song Liu
2023-01-24 12:24 ` [PATCH v10 1/2] x86/module: remove unused code in __apply_relocate_add Petr Mladek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.