Skip to contentSkip to conversation

x86/hyperv: Add interrupt handler annotations

PATCH New [email protected] 1 participant 1 message Apr 11, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 x86/hyperv: Add interrupt handler annotations

From: Michael Kelley <[email protected]>

Add standard interrupt handler annotations to hyperv_vector_handler(). This does not fix any observed bug, but avoids potential removal of the code by link time optimization and makes it consistent with hv_stimer0_vector_handler in the same source file.

---
Changes in v2:
* Fixed From: line [GregKH]
Changes in v3:
* Added more explanation in commit message and the Suggested-by line [GregKH]

---
 arch/x86/kernel/cpu/mshyperv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mshyperv.c +1 -1
index 4488cf0..20f6849 100644
@@ -41,7 +41,7 @@ static void (*hv_stimer0_handler)(void);
 static void (*hv_kexec_handler)(void);
 static void (*hv_crash_handler)(struct pt_regs *regs);
 
-void hyperv_vector_handler(struct pt_regs *regs)
+__visible void __irq_entry hyperv_vector_handler(struct pt_regs *regs)
 {
 	struct pt_regs *old_regs = set_irq_regs(regs);
 
Signature · 1 line
2.7.4