From d17134bc20d4cf6b4a446ede778dc8b8cd83a4af Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 26 Aug 2019 00:26:42 +0000 Subject: [PATCH] qla2x00t-32gbit: Complain loudly if attempting to build against an unsupported kernel git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8572 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla_def.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qla2x00t-32gbit/qla_def.h b/qla2x00t-32gbit/qla_def.h index 36b6c6aa5..4715e5fac 100644 --- a/qla2x00t-32gbit/qla_def.h +++ b/qla2x00t-32gbit/qla_def.h @@ -48,6 +48,14 @@ #define NEW_LIBFC_API #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && \ + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7) +#error +#error ***This version of qla2xxx does not support distributions based on*** +#error ***kernels before Linux kernel v3.15.*** +#error +#endif + /* Big endian Fibre Channel S_ID (source ID) or D_ID (destination ID). */ typedef struct { uint8_t domain;