From cee2887aff3932c2f022e702198e81602afcae98 Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Wed, 14 Oct 2020 13:56:08 +0200 Subject: [PATCH] isotp: bump version information and add Linux 5.10 mainline hint Signed-off-by: Oliver Hartkopp --- net/can/isotp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/can/isotp.c b/net/can/isotp.c index f3c3bb2..0ccb600 100644 --- a/net/can/isotp.c +++ b/net/can/isotp.c @@ -77,7 +77,7 @@ #include "compat.h" #endif -#define CAN_ISOTP_VERSION "20200928" +#define CAN_ISOTP_VERSION "20201014 - out-of-tree" MODULE_DESCRIPTION("PF_CAN isotp 15765-2:2016 protocol"); MODULE_LICENSE("Dual BSD/GPL"); @@ -88,6 +88,10 @@ MODULE_ALIAS("can-proto-6"); #error This modules needs hrtimers (available since Kernel 2.6.22) #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0) +#error No need to compile this out-of-tree driver! ISO-TP is part of Linux Mainline kernel since Linux 5.10. +#endif + #define DBG(fmt, args...) (printk( KERN_DEBUG "can-isotp: %s: " fmt, \ __func__, ##args)) #undef DBG