Skip to content

Commit 70664fc

Browse files
committed
Merge tag 'riscv-for-linus-5.19-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Palmer Dabbelt: - Two kexec-related build fixes - A DTS update to make the GPIO nodes match the upcoming dtschema - A fix that passes -mno-relax directly to the assembler when building modules, to work around compilers that fail to do so * tag 'riscv-for-linus-5.19-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: riscv: add as-options for modules with assembly compontents riscv: dts: align gpio-key node names with dtschema RISC-V: kexec: Fix build error without CONFIG_KEXEC RISCV: kexec: Fix build error without CONFIG_MODULES
2 parents ae21fba + c1f6eff commit 70664fc

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

arch/riscv/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ ifeq ($(CONFIG_PERF_EVENTS),y)
7373
endif
7474

7575
KBUILD_CFLAGS_MODULE += $(call cc-option,-mno-relax)
76+
KBUILD_AFLAGS_MODULE += $(call as-option,-Wa$(comma)-mno-relax)
7677

7778
# GCC versions that support the "-mstrict-align" option default to allowing
7879
# unaligned accesses. While unaligned accesses are explicitly allowed in the

arch/riscv/boot/dts/canaan/canaan_kd233.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
gpio-keys {
3636
compatible = "gpio-keys";
3737

38-
key0 {
38+
key {
3939
label = "KEY0";
4040
linux,code = <BTN_0>;
4141
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
gpio-keys {
4848
compatible = "gpio-keys";
4949

50-
boot {
50+
key-boot {
5151
label = "BOOT";
5252
linux,code = <BTN_0>;
5353
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
gpio-keys {
5353
compatible = "gpio-keys";
5454

55-
boot {
55+
key-boot {
5656
label = "BOOT";
5757
linux,code = <BTN_0>;
5858
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maix_go.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@
4646
gpio-keys {
4747
compatible = "gpio-keys";
4848

49-
up {
49+
key-up {
5050
label = "UP";
5151
linux,code = <BTN_1>;
5252
gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>;
5353
};
5454

55-
press {
55+
key-press {
5656
label = "PRESS";
5757
linux,code = <BTN_0>;
5858
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
5959
};
6060

61-
down {
61+
key-down {
6262
label = "DOWN";
6363
linux,code = <BTN_2>;
6464
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;

arch/riscv/boot/dts/canaan/sipeed_maixduino.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
gpio-keys {
2424
compatible = "gpio-keys";
2525

26-
boot {
26+
key-boot {
2727
label = "BOOT";
2828
linux,code = <BTN_0>;
2929
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;

arch/riscv/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ obj-$(CONFIG_SMP) += cpu_ops_sbi.o
7878
endif
7979
obj-$(CONFIG_HOTPLUG_CPU) += cpu-hotplug.o
8080
obj-$(CONFIG_KGDB) += kgdb.o
81-
obj-$(CONFIG_KEXEC) += kexec_relocate.o crash_save_regs.o machine_kexec.o
81+
obj-$(CONFIG_KEXEC_CORE) += kexec_relocate.o crash_save_regs.o machine_kexec.o
8282
obj-$(CONFIG_KEXEC_FILE) += elf_kexec.o machine_kexec_file.o
8383
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
8484

arch/riscv/kernel/elf_kexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ int arch_kexec_apply_relocations_add(struct purgatory_info *pi,
349349
{
350350
const char *strtab, *name, *shstrtab;
351351
const Elf_Shdr *sechdrs;
352-
Elf_Rela *relas;
352+
Elf64_Rela *relas;
353353
int i, r_type;
354354

355355
/* String & section header string table */

0 commit comments

Comments
 (0)