Commit ddbcfd66 authored by schrieveslaach's avatar schrieveslaach

Linux LTS 4.14 Support

parent e9dfa20b
--- linux-tbs-drivers/linux/drivers/media/common/saa7146_vbi.c 2017-08-06 19:53:49.174885608 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/common/saa7146_vbi.c 2017-08-06 19:49:42.107386740 +0200
@@ -1,3 +1,4 @@
+#include <linux/sched/signal.h>
#include <media/saa7146_vv.h>
static int vbi_pixel_to_capture = 720 * 2;
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/common/saa716x/saa716x_pci.c linux-tbs-drivers.new/linux/drivers/media/common/saa716x/saa716x_pci.c
--- linux-tbs-drivers/linux/drivers/media/common/saa716x/saa716x_pci.c 2017-08-06 19:53:49.178218998 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/common/saa716x/saa716x_pci.c 2017-08-06 19:49:42.107386740 +0200
@@ -46,7 +46,7 @@
for (i = 0; i < SAA716x_MSI_MAX_VECTORS; i++)
saa716x->msix_entries[i].entry = i;
- ret = pci_enable_msix(pdev, saa716x->msix_entries, SAA716x_MSI_MAX_VECTORS);
+ ret = pci_enable_msix_range(pdev, saa716x->msix_entries, SAA716x_MSI_MAX_VECTORS, SAA716x_MSI_MAX_VECTORS);
if (ret < 0)
dprintk(SAA716x_ERROR, 1, "MSI-X request failed <%d>", ret);
if (ret > 0)
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
--- linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c 2017-08-06 19:53:49.178218998 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c 2017-08-06 19:49:42.107386740 +0200
@@ -37,6 +37,7 @@
#include <linux/spinlock.h>
#include <linux/sched.h>
#include <linux/kthread.h>
+#include <linux/sched/signal.h>
#include "dvb_ca_en50221.h"
#include "dvb_ringbuffer.h"
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_demux.c linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_demux.c
--- linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_demux.c 2017-08-06 19:53:49.181552387 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_demux.c 2017-08-06 19:49:42.107386740 +0200
@@ -29,6 +29,7 @@
#include <linux/poll.h>
#include <linux/string.h>
#include <linux/crc32.h>
+#include <linux/sched/signal.h>
#include <asm/uaccess.h>
#include <asm/div64.h>
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_frontend.c linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
--- linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_frontend.c 2017-08-06 19:53:49.181552387 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_frontend.c 2017-08-06 19:49:42.107386740 +0200
@@ -42,6 +42,7 @@
#include "dvb_frontend.h"
#include "dvbdev.h"
#include <linux/dvb/version.h>
+#include <linux/sched/signal.h>
static int dvb_frontend_debug;
static int dvb_shutdown_timeout;
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c
--- linux-tbs-drivers/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c 2017-08-06 19:53:49.181552387 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c 2017-08-06 19:49:42.107386740 +0200
@@ -31,6 +31,8 @@
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/string.h>
+#include <linux/sched/signal.h>
+#include <linux/uaccess.h>
#include <asm/uaccess.h>
#include "dvb_ringbuffer.h"
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/dvb/ngene/ngene-cards.c linux-tbs-drivers.new/linux/drivers/media/dvb/ngene/ngene-cards.c
--- linux-tbs-drivers/linux/drivers/media/dvb/ngene/ngene-cards.c 2017-08-06 19:53:49.184885778 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/dvb/ngene/ngene-cards.c 2017-08-06 19:55:20.473090410 +0200
@@ -509,12 +509,6 @@
return PCI_ERS_RESULT_CAN_RECOVER;
}
-static pci_ers_result_t ngene_link_reset(struct pci_dev *dev)
-{
- printk(KERN_INFO DEVICE_NAME ": link reset\n");
- return 0;
-}
-
static pci_ers_result_t ngene_slot_reset(struct pci_dev *dev)
{
printk(KERN_INFO DEVICE_NAME ": slot reset\n");
@@ -528,7 +522,6 @@
static struct pci_error_handlers ngene_errors = {
.error_detected = ngene_error_detected,
- .link_reset = ngene_link_reset,
.slot_reset = ngene_slot_reset,
.resume = ngene_resume,
};
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/dvb/pt1/pt1.c linux-tbs-drivers.new/linux/drivers/media/dvb/pt1/pt1.c
--- linux-tbs-drivers/linux/drivers/media/dvb/pt1/pt1.c 2017-08-06 19:53:49.184885778 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/dvb/pt1/pt1.c 2017-08-06 19:49:42.107386740 +0200
@@ -28,6 +28,7 @@
#include <linux/pci.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
+#include <linux/sched/signal.h>
#include "dvbdev.h"
#include "dvb_demux.h"
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/rc/lirc_dev.c linux-tbs-drivers.new/linux/drivers/media/rc/lirc_dev.c
--- linux-tbs-drivers/linux/drivers/media/rc/lirc_dev.c 2017-08-06 19:53:49.184885778 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/rc/lirc_dev.c 2017-08-06 19:49:42.110720129 +0200
@@ -34,6 +34,7 @@
#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/cdev.h>
+#include <linux/sched/signal.h>
#include <media/lirc.h>
#include <media/lirc_dev.h>
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/arv.c linux-tbs-drivers.new/linux/drivers/media/video/arv.c
--- linux-tbs-drivers/linux/drivers/media/video/arv.c 2017-08-06 19:53:49.188219167 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/arv.c 2017-08-06 19:49:42.110720129 +0200
@@ -32,6 +32,7 @@
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <linux/mutex.h>
+#include <linux/sched/signal.h>
#include <asm/uaccess.h>
#include <asm/m32r.h>
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/cpia2/cpia2_core.c linux-tbs-drivers.new/linux/drivers/media/video/cpia2/cpia2_core.c
--- linux-tbs-drivers/linux/drivers/media/video/cpia2/cpia2_core.c 2017-08-06 19:53:49.188219167 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/cpia2/cpia2_core.c 2017-08-06 19:49:42.110720129 +0200
@@ -35,6 +35,7 @@
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/firmware.h>
+#include <linux/sched/signal.h>
/* #define _CPIA2_DEBUG_ */
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/cpia2/cpia2_v4l.c linux-tbs-drivers.new/linux/drivers/media/video/cpia2/cpia2_v4l.c
--- linux-tbs-drivers/linux/drivers/media/video/cpia2/cpia2_v4l.c 2017-08-06 19:53:49.188219167 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/cpia2/cpia2_v4l.c 2017-08-06 19:49:42.110720129 +0200
@@ -38,6 +38,7 @@
#include <linux/init.h>
#include <linux/videodev2.h>
#include <linux/stringify.h>
+#include <linux/sched/signal.h>
#include <media/v4l2-ioctl.h>
#include "cpia2.h"
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/cx18/cx18-driver.c linux-tbs-drivers.new/linux/drivers/media/video/cx18/cx18-driver.c
--- linux-tbs-drivers/linux/drivers/media/video/cx18/cx18-driver.c 2017-08-06 19:53:49.191552556 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/cx18/cx18-driver.c 2017-08-06 19:49:42.110720129 +0200
@@ -22,6 +22,8 @@
* 02111-1307 USA
*/
+#include <linux/sched/signal.h>
+
#include "cx18-driver.h"
#include "cx18-io.h"
#include "cx18-version.h"
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/gspca/cpia1.c linux-tbs-drivers.new/linux/drivers/media/video/gspca/cpia1.c
--- linux-tbs-drivers/linux/drivers/media/video/gspca/cpia1.c 2017-08-06 19:53:49.191552556 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/gspca/cpia1.c 2017-08-06 19:49:42.110720129 +0200
@@ -29,6 +29,7 @@
#define MODULE_NAME "cpia1"
#include <linux/input.h>
+#include <linux/sched/signal.h>
#include "gspca.h"
MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-driver.c linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-driver.c
--- linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-driver.c 2017-08-06 19:53:49.194885946 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-driver.c 2017-08-06 19:49:42.110720129 +0200
@@ -59,6 +59,8 @@
#include <media/tveeprom.h>
#include <media/saa7115.h>
#include <media/v4l2-chip-ident.h>
+#include <linux/sched/signal.h>
+#include <uapi/linux/sched/types.h>
#include "tuner-xc2028.h"
/* If you have already X v4l cards, then set this to X. This way
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtvfb.c linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtvfb.c
--- linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtvfb.c 2017-08-06 19:53:49.194885946 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtvfb.c 2017-08-06 19:49:42.110720129 +0200
@@ -43,6 +43,7 @@
#include <linux/fb.h>
#include <linux/ivtvfb.h>
#include <linux/slab.h>
+#include <linux/sched/signal.h>
#ifdef CONFIG_MTRR
#include <asm/mtrr.h>
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-fileops.c linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-fileops.c
--- linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-fileops.c 2017-08-06 19:53:49.198219335 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-fileops.c 2017-08-06 19:49:42.114053519 +0200
@@ -35,6 +35,7 @@
#include "ivtv-firmware.h"
#include <media/v4l2-event.h>
#include <media/saa7115.h>
+#include <linux/sched/signal.h>
/* This function tries to claim the stream for a specific file descriptor.
If no one else is using this stream then the stream is claimed and
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-ioctl.c linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-ioctl.c
--- linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-ioctl.c 2017-08-06 19:53:49.198219335 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-ioctl.c 2017-08-06 19:49:42.114053519 +0200
@@ -37,6 +37,7 @@
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-event.h>
#include <linux/dvb/audio.h>
+#include <linux/sched/signal.h>
u16 ivtv_service2vbi(int type)
{
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-yuv.c linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-yuv.c
--- linux-tbs-drivers/linux/drivers/media/video/ivtv/ivtv-yuv.c 2017-08-06 19:53:49.198219335 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/ivtv/ivtv-yuv.c 2017-08-06 19:49:42.114053519 +0200
@@ -18,6 +18,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/sched/signal.h>
#include "ivtv-driver.h"
#include "ivtv-udma.h"
#include "ivtv-yuv.h"
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c linux-tbs-drivers.new/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c
--- linux-tbs-drivers/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c 2017-08-06 19:53:49.201552724 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c 2017-08-06 19:49:42.114053519 +0200
@@ -25,6 +25,7 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/mutex.h>
+#include <linux/uaccess.h>
#include <asm/uaccess.h>
#define BUFFER_COUNT 32
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/videobuf-dma-sg.c linux-tbs-drivers.new/linux/drivers/media/video/videobuf-dma-sg.c
--- linux-tbs-drivers/linux/drivers/media/video/videobuf-dma-sg.c 2017-08-06 19:53:49.201552724 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/videobuf-dma-sg.c 2017-08-06 19:49:42.114053519 +0200
@@ -408,30 +408,21 @@
* now ...). Bounce buffers don't work very well for the data rates
* video capture has.
*/
-static int videobuf_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
+static int videobuf_vm_fault(struct vm_fault *vmf)
{
- struct page *page;
-
- #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
- dprintk(3, "fault: fault @ %08lx [vma %08lx-%08lx]\n", (unsigned long)vmf->virtual_address,vma->vm_start, vma->vm_end);
- #else
- dprintk(3, "fault: fault @ %08lx [vma %08lx-%08lx]\n", vmf->address,vma->vm_start, vma->vm_end);
- #endif
+ struct vm_area_struct *vma = vmf->vma;
+ struct page *page;
- page = alloc_page(GFP_USER | __GFP_DMA32);
- if (!page)
- return VM_FAULT_OOM;
-
- #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
- clear_user_highpage(page, (unsigned long)vmf->virtual_address);
- #else
- clear_user_highpage(page, vmf->address);
- #endif
+ dprintk(3, "fault: fault @ %08lx [vma %08lx-%08lx]\n",
+ vmf->address, vma->vm_start, vma->vm_end);
+ page = alloc_page(GFP_USER | __GFP_DMA32);
+ if (!page)
+ return VM_FAULT_OOM;
+ clear_user_highpage(page, vmf->address);
+ vmf->page = page;
- vmf->page = page;
-
- return 0;
+ return 0;
}
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,31)
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/zoran/zoran_device.c linux-tbs-drivers.new/linux/drivers/media/video/zoran/zoran_device.c
--- linux-tbs-drivers/linux/drivers/media/video/zoran/zoran_device.c 2017-08-06 19:53:49.201552724 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/zoran/zoran_device.c 2017-08-06 19:49:42.114053519 +0200
@@ -44,6 +44,7 @@
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/wait.h>
+#include <linux/sched/signal.h>
#include <asm/byteorder.h>
#include <asm/io.h>
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/media/video/zoran/zoran_driver.c linux-tbs-drivers.new/linux/drivers/media/video/zoran/zoran_driver.c
--- linux-tbs-drivers/linux/drivers/media/video/zoran/zoran_driver.c 2017-08-06 19:53:49.204886114 +0200
+++ linux-tbs-drivers.new/linux/drivers/media/video/zoran/zoran_driver.c 2017-08-06 19:49:42.114053519 +0200
@@ -69,6 +69,7 @@
#include <linux/proc_fs.h>
#include <linux/mutex.h>
+#include <linux/sched/signal.h>
#include "zoran.h"
#include "zoran_device.h"
#include "zoran_card.h"
diff -ura --no-dereference --color linux-tbs-drivers/linux/drivers/staging/go7007/go7007-v4l2.c linux-tbs-drivers.new/linux/drivers/staging/go7007/go7007-v4l2.c
--- linux-tbs-drivers/linux/drivers/staging/go7007/go7007-v4l2.c 2017-08-06 19:53:49.204886114 +0200
+++ linux-tbs-drivers.new/linux/drivers/staging/go7007/go7007-v4l2.c 2017-08-06 19:49:42.114053519 +0200
@@ -34,6 +34,7 @@
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
+#include <linux/sched/signal.h>
#include "go7007.h"
#include "go7007-priv.h"
\ No newline at end of file
......@@ -16,10 +16,12 @@ install='tbs-dvb-drivers.install'
_tbsver=v170330
source=("http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_$_tbsver.zip"
'tbs-dvb-drivers.install')
'tbs-dvb-drivers.install'
'0001-kernel-414.patch')
sha256sums=('50a21c0f37c2bf185b377f5287872a86f404988481a67ce391ff1ce28ce37636'
'3fdfa6f14af91b3301f0f29c2a2386a7f84504688c766e714287ad8d450e2a57')
'3fdfa6f14af91b3301f0f29c2a2386a7f84504688c766e714287ad8d450e2a57'
'ee27a75b912c7fff36331a0022917ccc9004e045219c95cf16938d867d9cb252')
pkgver() {
......@@ -33,6 +35,8 @@ prepare() {
cd $srcdir
tar xjf linux-tbs-drivers.tar.bz2
chmod -R u+rwX $srcdir/linux-tbs-drivers
patch -ruN -d linux-tbs-drivers 0001-kernel-414.patch
}
build() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment