Skip to content

Commit

Permalink
Merge tag 'riscv-for-linus-5.19-rc8' of git://git.kernel.org/pub/scm/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Linus Torvalds committed Jul 22, 2022
2 parents ae21fba + c1f6eff commit 70664fc
Showing 8 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions arch/riscv/Makefile
Original file line number Diff line number Diff line change
@@ -73,6 +73,7 @@ ifeq ($(CONFIG_PERF_EVENTS),y)
endif

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

# GCC versions that support the "-mstrict-align" option default to allowing
# unaligned accesses. While unaligned accesses are explicitly allowed in the
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/canaan_kd233.dts
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@
gpio-keys {
compatible = "gpio-keys";

key0 {
key {
label = "KEY0";
linux,code = <BTN_0>;
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@
gpio-keys {
compatible = "gpio-keys";

boot {
key-boot {
label = "BOOT";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@
gpio-keys {
compatible = "gpio-keys";

boot {
key-boot {
label = "BOOT";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
6 changes: 3 additions & 3 deletions arch/riscv/boot/dts/canaan/sipeed_maix_go.dts
Original file line number Diff line number Diff line change
@@ -46,19 +46,19 @@
gpio-keys {
compatible = "gpio-keys";

up {
key-up {
label = "UP";
linux,code = <BTN_1>;
gpios = <&gpio1_0 7 GPIO_ACTIVE_LOW>;
};

press {
key-press {
label = "PRESS";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};

down {
key-down {
label = "DOWN";
linux,code = <BTN_2>;
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/canaan/sipeed_maixduino.dts
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
gpio-keys {
compatible = "gpio-keys";

boot {
key-boot {
label = "BOOT";
linux,code = <BTN_0>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
2 changes: 1 addition & 1 deletion arch/riscv/kernel/Makefile
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ obj-$(CONFIG_SMP) += cpu_ops_sbi.o
endif
obj-$(CONFIG_HOTPLUG_CPU) += cpu-hotplug.o
obj-$(CONFIG_KGDB) += kgdb.o
obj-$(CONFIG_KEXEC) += kexec_relocate.o crash_save_regs.o machine_kexec.o
obj-$(CONFIG_KEXEC_CORE) += kexec_relocate.o crash_save_regs.o machine_kexec.o
obj-$(CONFIG_KEXEC_FILE) += elf_kexec.o machine_kexec_file.o
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o

2 changes: 1 addition & 1 deletion arch/riscv/kernel/elf_kexec.c
Original file line number Diff line number Diff line change
@@ -349,7 +349,7 @@ int arch_kexec_apply_relocations_add(struct purgatory_info *pi,
{
const char *strtab, *name, *shstrtab;
const Elf_Shdr *sechdrs;
Elf_Rela *relas;
Elf64_Rela *relas;
int i, r_type;

/* String & section header string table */

0 comments on commit 70664fc

Please sign in to comment.