x86/vmlinux.lds.S: Remove conditional definition of LOAD_OFFSET
authorWei Yang <richard.weiyang@gmail.com>
Wed, 13 Mar 2024 07:58:38 +0000 (07:58 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Mar 2024 10:29:10 +0000 (11:29 +0100)
commita5cffd056ef52280c07a7f6a3b3faacf6b318e8e
tree529fc83646661b5973c9ceeb60e6334f36e70c83
parent1793f69326266269a8117d3f5324ac78db18931c
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
arch/x86/kernel/vmlinux.lds.S