summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-09-07 20:38:46 -0300
committerDavid P <megver83@parabola.nu>2018-09-07 20:38:46 -0300
commit13d77a3dd06e6363f129e20458e9c443b92f4229 (patch)
tree10237070536961f60b64e7a16325519887e08a3e
parent269ef33f60320d0c5ed372a3435e448fbb1c78a6 (diff)
downloadabslibre-13d77a3dd06e6363f129e20458e9c443b92f4229.tar.gz
abslibre-13d77a3dd06e6363f129e20458e9c443b92f4229.tar.bz2
abslibre-13d77a3dd06e6363f129e20458e9c443b92f4229.zip
linux-libre-rt: add backport fix patch from lkml.org
Signed-off-by: David P <megver83@parabola.nu>
-rw-r--r--kernels/linux-libre-rt/PKGBUILD11
-rw-r--r--kernels/linux-libre-rt/fix-get_irq_regs-implicit-declaration.patch36
2 files changed, 43 insertions, 4 deletions
diff --git a/kernels/linux-libre-rt/PKGBUILD b/kernels/linux-libre-rt/PKGBUILD
index 24fc1031a..0d391eb9a 100644
--- a/kernels/linux-libre-rt/PKGBUILD
+++ b/kernels/linux-libre-rt/PKGBUILD
@@ -64,6 +64,7 @@ source=(
'0002-fix-Atmel-maXTouch-touchscreen-support.patch'
'0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch'
'0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch'
+ 'fix-get_irq_regs-implicit-declaration.patch'
)
validpgpkeys=(
'474402C8C582DAFBE389C427BCB7CF877E7D47A7' # Alexandre Oliva
@@ -108,7 +109,8 @@ sha512sums=('0d4b0b8ec1ffc39c59295adf56f6a2cccf77cad56d8a8bf8072624bbb52ba3e6841
'02af4dd2a007e41db0c63822c8ab3b80b5d25646af1906dc85d0ad9bb8bbf5236f8e381d7f91cf99ed4b0978c50aee37cb9567cdeef65b7ec3d91b882852b1af'
'b8fe56e14006ab866970ddbd501c054ae37186ddc065bb869cf7d18db8c0d455118d5bda3255fb66a0dde38b544655cfe9040ffe46e41d19830b47959b2fb168'
'485f37aca7793cee2361e126bc619e5bfd1737bff484b06bbba76cd326f3845c4d96c17bb9a56623a653b7b7062a698975d6a7f019f5c1a3eb9faf9b352d73f2'
- 'e8229b8979ab287d9ad2cac137f2ba349bd43fd0fc09ad19239ea8e3d0d9571977a8296d3814887d7c15f61431f91194851b4a1af5c61ed416faec8283ce3206')
+ 'e8229b8979ab287d9ad2cac137f2ba349bd43fd0fc09ad19239ea8e3d0d9571977a8296d3814887d7c15f61431f91194851b4a1af5c61ed416faec8283ce3206'
+ 'a49a10e36c788144b4c10596b220f64f1f8f868b97e50f890af9a6be826a12646182cece3971a490c8450d291b196decb40cb865f5f75d3d5a7af3c77f114fcb')
_kernelname=${pkgbase#linux-libre}
_replacesarchkernel=("${_replacesarchkernel[@]/\%/${_kernelname}}")
@@ -128,9 +130,10 @@ prepare() {
patch -p1 -i ../patch-${_srcbasever}-${_srcver}
fi
chmod +x tools/objtool/sync-check.sh # GNU patch doesn't support git-style file mode
-
+
# add realtime patch
patch -p1 -i ../patch-${_srcver%-*}-${_rtpatchver}.patch
+ patch -p1 -i ../fix-get_irq_regs-implicit-declaration.patch
rm localversion-rt
if [ "${CARCH}" = "armv7h" ]; then
@@ -156,7 +159,7 @@ prepare() {
patch -p1 -i ../0013-ARM-dts-imx6qdl-udoo.dtsi-fix-onboard-USB-HUB-proper.patch
patch -p1 -i ../0014-ARM-dts-imx6q-evi-Fix-onboard-hub-reset-line.patch
fi
-
+
# add freedo as boot logo
install -m644 -t drivers/video/logo \
../logo_linux_{clut224.ppm,vga16.ppm,mono.pbm}
@@ -171,7 +174,7 @@ prepare() {
# https://bugs.archlinux.org/task/56711
patch -Np1 -i ../0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch
-
+
# maintain the TTY over USB disconnects
# http://www.coreboot.org/EHCI_Gadget_Debug
patch -p1 -i ../0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch
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.
+