]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: x86: clean up elf specific definitions
authorHajime Tazaki <thehajime@gmail.com>
Mon, 20 Jan 2025 06:00:03 +0000 (15:00 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Mar 2025 13:48:31 +0000 (14:48 +0100)
The file arch/x86/um/asm/module.h is equivalent to the definition of
asm-generic.  Thus this commit cleans up to use it.

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
Link: https://patch.msgid.link/2d70a0ed79ee0a0bef80ad4790063f4833dd9bed.1737348399.git.thehajime@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/asm/Kbuild
arch/x86/um/asm/module.h [deleted file]

index 428f2c5158c2ac073ba6cfebb685381f61aea5ba..04ab3b653a487f99700bb0f92f9ddfa01adc0352 100644 (file)
@@ -13,6 +13,7 @@ generic-y += irq_work.h
 generic-y += kdebug.h
 generic-y += mcs_spinlock.h
 generic-y += mmiowb.h
+generic-y += module.h
 generic-y += module.lds.h
 generic-y += param.h
 generic-y += parport.h
diff --git a/arch/x86/um/asm/module.h b/arch/x86/um/asm/module.h
deleted file mode 100644 (file)
index a3b061d..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __UM_MODULE_H
-#define __UM_MODULE_H
-
-/* UML is simple */
-struct mod_arch_specific
-{
-};
-
-#ifdef CONFIG_X86_32
-
-#define Elf_Shdr Elf32_Shdr
-#define Elf_Sym Elf32_Sym
-#define Elf_Ehdr Elf32_Ehdr
-
-#else
-
-#define Elf_Shdr Elf64_Shdr
-#define Elf_Sym Elf64_Sym
-#define Elf_Ehdr Elf64_Ehdr
-
-#endif
-
-#endif