Skip to content

Commit a7a4f1c

Browse files
committed
Merge tag 'riscv-for-linus-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Palmer Dabbelt: - avoid passing -mno-relax to compilers that don't support it - a comment fix * tag 'riscv-for-linus-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: riscv: Fix comment regarding kernel mapping overlapping with IS_ERR_VALUE riscv: kexec: do not add '-mno-relax' flag if compiler doesn't support it
2 parents 118516e + fdf3a7a commit a7a4f1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/riscv/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ endif
1111
CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,)
1212

1313
ifdef CONFIG_KEXEC
14-
AFLAGS_kexec_relocate.o := -mcmodel=medany -mno-relax
14+
AFLAGS_kexec_relocate.o := -mcmodel=medany $(call cc-option,-mno-relax)
1515
endif
1616

1717
extra-y += head.o

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static void __init setup_bootmem(void)
197197
* if end of dram is equal to maximum addressable memory. For 64-bit
198198
* kernel, this problem can't happen here as the end of the virtual
199199
* address space is occupied by the kernel mapping then this check must
200-
* be done in create_kernel_page_table.
200+
* be done as soon as the kernel mapping base address is determined.
201201
*/
202202
max_mapped_addr = __pa(~(ulong)0);
203203
if (max_mapped_addr == (phys_ram_end - 1))

0 commit comments

Comments
 (0)