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
This commit is contained in:
Bart Van Assche
2019-08-26 00:26:42 +00:00
parent 9267f92ba5
commit d17134bc20

View File

@@ -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;