# HG changeset patch # User Yoshiki Yazawa # Date 1523806999 -32400 # Node ID d568316766965a5e159f9a75848bffd6b67cdd8a # Parent 1e7718cc2556acb607f53b2d5f096a03dde4677e compile fix diff -r 1e7718cc2556 -r d56831676696 driver/pt1_pci.c --- 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 #include #include +#include #if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) #include #endif #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,12,0) #include +#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) #include @@ -51,6 +54,10 @@ #define __devexit_p #endif +#if LINUX_VERSION_CODE > KERNEL_VERSION(4,2,0) +#include +#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;