From 74354ff7f0abb8dcd44ed19cb4d4266a336e6e05 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 23 Apr 2019 01:00:43 +0000 Subject: [PATCH] scst: Fix the build against Ubuntu kernel 4.15.0 Reported-by: Tomohiro Kusumi git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8271 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 7d6c51297..3ebdf5770 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1622,9 +1622,9 @@ enum { * See also commit cc019a5a3b58 ("scsi: scsi_transport_fc: fix typos on 64/128 * GBit define names") # v4.16. */ -enum { - FC_PORTSPEED_64GBIT = 0x1000 -}; +#ifndef FC_PORTSPEED_64GBIT +#define FC_PORTSPEED_64GBIT 0x1000 +#endif #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)