Skip to content

Commit 04d6848

Browse files
arndbjgross1
authored andcommitted
xen: xen_debug_interrupt prototype to global header
The xen_debug_interrupt() function is only called on x86, which has a prototype in an architecture specific header, but the definition also exists on others, where the lack of a prototype causes a W=1 warning: drivers/xen/events/events_2l.c:264:13: error: no previous prototype for 'xen_debug_interrupt' [-Werror=missing-prototypes] Move the prototype into a global header instead to avoid this warning. Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Stefano Stabellini <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent 6995e2d commit 04d6848

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arch/x86/xen/xen-ops.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ void xen_restore_time_memory_area(void);
7272
void xen_init_time_ops(void);
7373
void xen_hvm_init_time_ops(void);
7474

75-
irqreturn_t xen_debug_interrupt(int irq, void *dev_id);
76-
7775
bool xen_vcpu_stolen(int vcpu);
7876

7977
void xen_vcpu_setup(int cpu);

include/xen/events.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,7 @@ int xen_test_irq_shared(int irq);
138138

139139
/* initialize Xen IRQ subsystem */
140140
void xen_init_IRQ(void);
141+
142+
irqreturn_t xen_debug_interrupt(int irq, void *dev_id);
143+
141144
#endif /* _XEN_EVENTS_H */

0 commit comments

Comments
 (0)