Skip to content

Commit a5cffd0

Browse files
RichardWeiYangingomolnar
authored andcommitted
x86/vmlinux.lds.S: Remove conditional definition of LOAD_OFFSET
In vmlinux.lds.S, we define LOAD_OFFSET conditionally to __PAGE_OFFSET or __START_KERNEL_map. While __START_KERNEL_map is already defined to the same value with the same condition. So it is fine to define LOAD_OFFSET to __START_KERNEL_map directly. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20240313075839.8321-4-richard.weiyang@gmail.com
1 parent 1793f69 commit a5cffd0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

arch/x86/kernel/vmlinux.lds.S

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
* put it inside the section definition.
1616
*/
1717

18-
#ifdef CONFIG_X86_32
19-
#define LOAD_OFFSET __PAGE_OFFSET
20-
#else
2118
#define LOAD_OFFSET __START_KERNEL_map
22-
#endif
2319

2420
#define RUNTIME_DISCARD_EXIT
2521
#define EMITS_PT_NOTE

0 commit comments

Comments
 (0)