From f62b01d625ecf3c1afdc1b4e4430bbe4a5392af5 Mon Sep 17 00:00:00 2001 From: Numan Siddique Date: Sun, 30 Dec 2018 15:47:10 +0530 Subject: [PATCH] Fix compilation error with 4.19+ kernels make[1]: Entering directory '/usr/src/kernels/4.19.9-300.fc29.x86_64' CC [M] bcwc_pcie/fthd_ddr.o In file included from bcwc_pcie/fthd_ddr.c:21: bcwc_pcie/fthd_drv.h:121:5: warning: "LINUX_VERSION_CODE" is not defined, evaluates to 0 [-Wundef] #if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0) ^~~~~~~~~~~~~~~~~~ bcwc_pcie/fthd_drv.h:121:26: warning: "KERNEL_VERSION" is not defined, evaluates to 0 [-Wundef] #if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0) ^~~~~~~~~~~~~~ bcwc_pcie/fthd_drv.h:121:40: error: missing binary operator before token "(" #if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0) ... Fixes the above compilation error Signed-off-by: Numan Siddique --- fthd_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/fthd_drv.h b/fthd_drv.h index 21c5f74..e16ccab 100644 --- a/fthd_drv.h +++ b/fthd_drv.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include