Skip to content

Commit 4040b11

Browse files
sean-jcNeeraj Upadhyay
authored andcommitted
context_tracking: Tag context_tracking_enabled_this_cpu() __always_inline
Force context_tracking_enabled_this_cpu() to be inlined so that invoking it from guest_context_enter_irqoff(), which KVM uses in non-instrumentable code, doesn't unexpectedly leave a noinstr section. vmlinux.o: warning: objtool: vmx_vcpu_enter_exit+0x1c7: call to context_tracking_enabled_this_cpu() leaves .noinstr.text section vmlinux.o: warning: objtool: svm_vcpu_enter_exit+0x83: call to context_tracking_enabled_this_cpu() leaves .noinstr.text section Note, the CONFIG_CONTEXT_TRACKING_USER=n stub is already __always_inline. Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]>
1 parent 4f336dc commit 4040b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/context_tracking_state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static __always_inline bool context_tracking_enabled_cpu(int cpu)
113113
return context_tracking_enabled() && per_cpu(context_tracking.active, cpu);
114114
}
115115

116-
static inline bool context_tracking_enabled_this_cpu(void)
116+
static __always_inline bool context_tracking_enabled_this_cpu(void)
117117
{
118118
return context_tracking_enabled() && __this_cpu_read(context_tracking.active);
119119
}

0 commit comments

Comments
 (0)