mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 22:26:23 +00:00
fcst: Rework the fc_fill_fc_hdr() compatibility check
Decide which SCSI header file to include based on a compile time check instead of trying to derive that choice from the UEK kernel version. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9606 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+7
-2
@@ -19,10 +19,15 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <scsi/libfc.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) && !defined(UEK_RELEASE)
|
||||
/*
|
||||
* See also upstream commit e31ac898ac29 ("scsi: libfc: Move scsi/fc_encode.h
|
||||
* to libfc"). That commit moved fc_fill_fc_hdr() from <scsi/fc_encode.h> into
|
||||
* <scsi/fc_frame.h>.
|
||||
*/
|
||||
#if defined(FC_FILL_FC_HDR_IN_SCSI_FC_ENCODE_H)
|
||||
#include <scsi/fc_encode.h>
|
||||
#else
|
||||
#include <scsi/fc/fc_ms.h>
|
||||
#include <scsi/fc_frame.h>
|
||||
#endif
|
||||
#include "fcst.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user