diff options
| author | Damien Le Moal <[email protected]> | 2024-12-08 23:53:32 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2024-12-09 18:13:28 +0000 |
| commit | aeb68937614f4aeceaaa762bd7f0212ce842b797 (patch) | |
| tree | 3298b4d81568875e6a72e2627b0a7ca254e72f54 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
| parent | futex: fix user access on powerpc (diff) | |
| download | kernel-aeb68937614f4aeceaaa762bd7f0212ce842b797.tar.gz kernel-aeb68937614f4aeceaaa762bd7f0212ce842b797.zip | |
x86: Fix build regression with CONFIG_KEXEC_JUMP enabled
Build 6.13-rc12 for x86_64 with gcc 14.2.1 fails with the error:
ld: vmlinux.o: in function `virtual_mapped':
linux/arch/x86/kernel/relocate_kernel_64.S:249:(.text+0x5915b): undefined reference to `saved_context_gdt_desc'
when CONFIG_KEXEC_JUMP is enabled.
This was introduced by commit 07fa619f2a40 ("x86/kexec: Restore GDT on
return from ::preserve_context kexec") which introduced a use of
saved_context_gdt_desc without a declaration for it.
Fix that by including asm/asm-offsets.h where saved_context_gdt_desc
is defined (indirectly in include/generated/asm-offsets.h which
asm/asm-offsets.h includes).
Fixes: 07fa619f2a40 ("x86/kexec: Restore GDT on return from ::preserve_context kexec")
Signed-off-by: Damien Le Moal <[email protected]>
Acked-by: Borislav Petkov (AMD) <[email protected]>
Acked-by: David Woodhouse <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions
