mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 11:41:26 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user