Skip to content

Commit a5cffd0

Browse files
RichardWeiYangIngo Molnar
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1793f69 commit a5cffd0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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)