Mercurial > pt1
changeset 143:d56831676696
compile fix
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 16 Apr 2018 00:43:19 +0900 |
parents | 1e7718cc2556 |
children | 5e4290a4cd01 |
files | driver/pt1_pci.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/driver/pt1_pci.c Wed Apr 30 11:26:24 2014 +0900 +++ b/driver/pt1_pci.c Mon Apr 16 00:43:19 2018 +0900 @@ -11,13 +11,16 @@ #include <linux/interrupt.h> #include <linux/version.h> #include <linux/mutex.h> +#include <linux/uaccess.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) #include <asm/system.h> #endif #include <asm/io.h> #include <asm/irq.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,12,0) #include <asm/uaccess.h> +#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) #include <linux/freezer.h> @@ -51,6 +54,10 @@ #define __devexit_p #endif +#if LINUX_VERSION_CODE > KERNEL_VERSION(4,2,0) +#include <linux/vmalloc.h> +#endif + /* These identify the driver base version and may not be removed. */ static char version[] __devinitdata = DRV_NAME ".c: " DRV_VERSION " " DRV_RELDATE " \n"; @@ -524,7 +531,7 @@ static long pt1_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg0) { PT1_CHANNEL *channel = file->private_data; - int signal; + int signal = 0; unsigned long dummy; void *arg = (void *)arg0; int lnb_eff, lnb_usr;