diff --git a/devices/generic.c b/devices/generic.c index fd6fc863..f6cef9b5 100644 --- a/devices/generic.c +++ b/devices/generic.c @@ -41,7 +41,7 @@ #define EC_GEN_RX_BUF_SIZE 1600 -#ifdef CONFIG_SUSE_KERNEL +#if defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) #include #else # ifndef SUSE_VERSION diff --git a/master/ethernet.c b/master/ethernet.c index b11ed09a..089c8aec 100644 --- a/master/ethernet.c +++ b/master/ethernet.c @@ -38,7 +38,7 @@ #include "mailbox.h" #include "ethernet.h" -#ifdef CONFIG_SUSE_KERNEL +#if defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) #include #else # ifndef SUSE_VERSION