Skip to content

Commit

Permalink
Merge branch 'core/entry' into x86/entry
Browse files Browse the repository at this point in the history
Pick up generic entry code fixes.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Ingo Molnar committed Jul 26, 2020
2 parents 72c3c0f + 3135f5b commit d25c8be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/linux/seccomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ static inline int seccomp_mode(struct seccomp *s)

struct seccomp { };
struct seccomp_filter { };
struct seccomp_data;

#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
static inline int secure_computing(void) { return 0; }
static inline int __secure_computing(void) { return 0; }
static inline int __secure_computing(const struct seccomp_data *sd) { return 0; }
#else
static inline void secure_computing_strict(int this_syscall) { return; }
#endif
Expand Down
4 changes: 2 additions & 2 deletions kernel/entry/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ noinstr void irqentry_exit_to_user_mode(struct pt_regs *regs)
exit_to_user_mode();
}

irqentry_state_t noinstr irqentry_enter(struct pt_regs *regs)
noinstr irqentry_state_t irqentry_enter(struct pt_regs *regs)
{
irqentry_state_t ret = {
.exit_rcu = false,
Expand Down Expand Up @@ -333,7 +333,7 @@ void irqentry_exit_cond_resched(void)
}
}

void noinstr irqentry_exit(struct pt_regs *regs, irqentry_state_t state)
noinstr void irqentry_exit(struct pt_regs *regs, irqentry_state_t state)
{
lockdep_assert_irqs_disabled();

Expand Down

0 comments on commit d25c8be

Please sign in to comment.