The `regs' parameter is not used in idtentry_exit_cond_resched() and can
be removed.

Remove the `regs' parameter.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
---
 arch/x86/entry/common.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c
index 212382f61b8e4..652dce37643b4 100644
--- a/arch/x86/entry/common.c
+++ b/arch/x86/entry/common.c
@@ -610,7 +610,7 @@ bool noinstr idtentry_enter_cond_rcu(struct pt_regs *regs)
        return false;
 }
 
-static void idtentry_exit_cond_resched(struct pt_regs *regs, bool may_sched)
+static void idtentry_exit_cond_resched(bool may_sched)
 {
        if (may_sched && should_resched(0)) {
                /* Sanity check RCU and thread stack */
@@ -664,7 +664,7 @@ void noinstr idtentry_exit_cond_rcu(struct pt_regs *regs, 
bool rcu_exit)
                }
 
                instrumentation_begin();
-               idtentry_exit_cond_resched(regs, IS_ENABLED(CONFIG_PREEMPTION));
+               idtentry_exit_cond_resched(IS_ENABLED(CONFIG_PREEMPTION));
                instrumentation_end();
        } else {
                /*
@@ -770,7 +770,7 @@ __visible noinstr void xen_pv_evtchn_do_upcall(struct 
pt_regs *regs)
        inhcall = get_and_clear_inhcall();
        if (inhcall && !WARN_ON_ONCE(rcu_exit)) {
                instrumentation_begin();
-               idtentry_exit_cond_resched(regs, true);
+               idtentry_exit_cond_resched(true);
                instrumentation_end();
                restore_inhcall(inhcall);
        } else {
-- 
2.27.0

Reply via email to