Skip to content

Commit

Permalink
Merge branch 'riscv-variable_fixes_without_kvm' of git://git.kernel.o…
Browse files Browse the repository at this point in the history
…rg/pub/scm/linux/kernel/git/palmer/linux.git into fixes

This contains a pair of fixes for build-time warnings.

* 'riscv-variable_fixes_without_kvm' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git:
  riscv: traps: add missing prototype
  riscv: signal: fix missing prototype warning
  • Loading branch information
palmer-dabbelt committed Aug 25, 2022
2 parents 92e55a8 + d951b20 commit 1709c70
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
12 changes: 12 additions & 0 deletions arch/riscv/include/asm/signal.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __ASM_SIGNAL_H
#define __ASM_SIGNAL_H

#include <uapi/asm/signal.h>
#include <uapi/asm/ptrace.h>

asmlinkage __visible
void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags);

#endif
2 changes: 2 additions & 0 deletions arch/riscv/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

#ifndef __ASSEMBLY__

extern long shadow_stack[SHADOW_OVERFLOW_STACK_SIZE / sizeof(long)];

#include <asm/processor.h>
#include <asm/csr.h>

Expand Down
1 change: 1 addition & 0 deletions arch/riscv/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <asm/ucontext.h>
#include <asm/vdso.h>
#include <asm/signal.h>
#include <asm/signal32.h>
#include <asm/switch_to.h>
#include <asm/csr.h>
Expand Down
3 changes: 2 additions & 1 deletion arch/riscv/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@

#include <asm/asm-prototypes.h>
#include <asm/bug.h>
#include <asm/csr.h>
#include <asm/processor.h>
#include <asm/ptrace.h>
#include <asm/csr.h>
#include <asm/thread_info.h>

int show_unhandled_signals = 1;

Expand Down

0 comments on commit 1709c70

Please sign in to comment.