summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-rt/fix-get_irq_regs-implicit-declaration.patch
diff options
context:
space:
mode:
Diffstat (limited to 'kernels/linux-libre-rt/fix-get_irq_regs-implicit-declaration.patch')
-rw-r--r--kernels/linux-libre-rt/fix-get_irq_regs-implicit-declaration.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/kernels/linux-libre-rt/fix-get_irq_regs-implicit-declaration.patch b/kernels/linux-libre-rt/fix-get_irq_regs-implicit-declaration.patch
new file mode 100644
index 000000000..88003b189
--- /dev/null
+++ b/kernels/linux-libre-rt/fix-get_irq_regs-implicit-declaration.patch
@@ -0,0 +1,36 @@
+------------------
+
+From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+
+[ Upstream commit b9fcc1867cc7921bb8441be327ed58461ed12255 ]
+
+On !RT the header file get_irq_regs() gets pulled in via other header files. On
+RT it does not and the build fails:
+
+ drivers/hv/vmbus_drv.c:975 implicit declaration of function '˜get_irq_regs'™ [-Werror=implicit-function-declaration]
+ drivers/hv/hv.c:115 implicit declaration of function '˜get_irq_regs'™ [-Werror=implicit-function-declaration]
+
+Add the header file for get_irq_regs() in a common header so it used by
+vmbus_drv.c by hv.c for their get_irq_regs() usage.
+
+Reported-by: Bernhard Landauer <oberon@manjaro.org>
+Reported-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
+---
+ drivers/hv/hyperv_vmbus.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
+index 49569f8fe038..a3608cd52805 100644
+--- a/drivers/hv/hyperv_vmbus.h
++++ b/drivers/hv/hyperv_vmbus.h
+@@ -30,6 +30,7 @@
+ #include <linux/atomic.h>
+ #include <linux/hyperv.h>
+ #include <linux/interrupt.h>
++#include <linux/irq.h>
+
+ /*
+ * Timeout for services such as KVP and fcopy.
+