summaryrefslogtreecommitdiff
path: root/include/xen
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-05-17 14:45:07 +0200
committerJuergen Gross <jgross@suse.com>2023-06-26 07:47:11 +0200
commit04d684875b30393c3e5cd0daf2fa737b562a7ad9 (patch)
tree9743a5e96d658903ca907525fc0a030dde247a69 /include/xen
parent6995e2de6891c724bfeb2db33d7b87775f913ad1 (diff)
downloadlwn-04d684875b30393c3e5cd0daf2fa737b562a7ad9.tar.gz
lwn-04d684875b30393c3e5cd0daf2fa737b562a7ad9.zip
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 <arnd@arndb.de> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Link: https://lore.kernel.org/r/20230517124525.929201-1-arnd@kernel.org Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/events.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xen/events.h b/include/xen/events.h
index 44c2855c76d1..ac1281c5ead6 100644
--- a/include/xen/events.h
+++ b/include/xen/events.h
@@ -138,4 +138,7 @@ int xen_test_irq_shared(int irq);
/* initialize Xen IRQ subsystem */
void xen_init_IRQ(void);
+
+irqreturn_t xen_debug_interrupt(int irq, void *dev_id);
+
#endif /* _XEN_EVENTS_H */