Skip to content

Commit aae5ab8

Browse files
committed
Merge tag 'riscv-for-linus-5.10-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Palmer Dabbelt: "I've collected a handful of fixes over the past few weeks: - A fix to un-break the build-id argument to the vDSO build, which is necessary for the LLVM linker. - A fix to initialize the jump label subsystem, without which it (and all the stuff that uses it) doesn't actually function. - A fix to include <asm/barrier.h> from <vdso/processor.h>, without which some drivers won't compile" * tag 'riscv-for-linus-5.10-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: RISC-V: fix barrier() use in <vdso/processor.h> RISC-V: Add missing jump label initialization riscv: Explicitly specify the build id style in vDSO Makefile again
2 parents 45e885c + 30aca1b commit aae5ab8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

arch/riscv/include/asm/vdso/processor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#ifndef __ASSEMBLY__
66

7+
#include <asm/barrier.h>
8+
79
static inline void cpu_relax(void)
810
{
911
#ifdef __riscv_muldiv

arch/riscv/kernel/setup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ void __init setup_arch(char **cmdline_p)
7575
*cmdline_p = boot_command_line;
7676

7777
early_ioremap_setup();
78+
jump_label_init();
7879
parse_early_param();
7980

8081
efi_init();

arch/riscv/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SYSCFLAGS_vdso.so.dbg = $(c_flags)
4444
$(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso) FORCE
4545
$(call if_changed,vdsold)
4646
SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \
47-
-Wl,--build-id -Wl,--hash-style=both
47+
-Wl,--build-id=sha1 -Wl,--hash-style=both
4848

4949
# We also create a special relocatable object that should mirror the symbol
5050
# table and layout of the linked DSO. With ld --just-symbols we can then

0 commit comments

Comments
 (0)