fcst: Fix the build against the latest UEK kernel

This patch fixes the build against UEK kernel 5.4.17-2136.300.7.el8uek and
breaks the build for older 5.4.17 UEK kernels, e.g.
5.4.17-2102.200.13.el8uek.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9586 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-10-24 02:37:31 +00:00
parent 6d4d2d9d3d
commit a8711755b5
2 changed files with 6 additions and 2 deletions

View File

@@ -19,7 +19,9 @@
#include <linux/kernel.h>
#include <linux/types.h>
#include <scsi/libfc.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) && \
!(LINUX_VERSION_CODE == KERNEL_VERSION(5, 4, 7) && \
defined(UEK_KABI_RENAME))
#include <scsi/fc_encode.h>
#else
#include <scsi/fc/fc_ms.h>

View File

@@ -24,7 +24,9 @@
#include <linux/kernel.h>
#include <linux/types.h>
#include <scsi/libfc.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) && \
!(LINUX_VERSION_CODE == KERNEL_VERSION(5, 4, 7) && \
defined(UEK_KABI_RENAME))
#include <scsi/fc_encode.h>
#else
#include <scsi/fc/fc_ms.h>