Skip to content

Commit b09ca17

Browse files
committed
Merge tag 'riscv-for-linus-5.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Palmer Dabbelt: "Two fixes: - Another !MMU build fix that was a straggler from last week - A fix to use the "register" keyword for the GP global register variable" * tag 'riscv-for-linus-5.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: RISC-V: gp_in_global needs register keyword riscv: Fix print_vm_layout build error if NOMMU
2 parents 4286d19 + 8356c37 commit b09ca17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/riscv/kernel/process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <asm/switch_to.h>
2323
#include <asm/thread_info.h>
2424

25-
unsigned long gp_in_global __asm__("gp");
25+
register unsigned long gp_in_global __asm__("gp");
2626

2727
extern asmlinkage void ret_from_fork(void);
2828
extern asmlinkage void ret_from_kernel_thread(void);

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void setup_zero_page(void)
4747
memset((void *)empty_zero_page, 0, PAGE_SIZE);
4848
}
4949

50-
#ifdef CONFIG_DEBUG_VM
50+
#if defined(CONFIG_MMU) && defined(CONFIG_DEBUG_VM)
5151
static inline void print_mlk(char *name, unsigned long b, unsigned long t)
5252
{
5353
pr_notice("%12s : 0x%08lx - 0x%08lx (%4ld kB)\n", name, b, t,

0 commit comments

Comments
 (0)