scst: Fix a Linux kernel v4.10 warning about redefining FC_PORT_ROLE_NVME_INITIATOR

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8433 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-06-20 17:09:32 +00:00
parent 810e718997
commit 70e055ea0d

View File

@@ -1636,7 +1636,11 @@ enum {
#define FC_PORT_ROLE_IP_PORT 0x04
#endif
#ifndef FC_PORT_ROLE_NVME_INITIATOR
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
/*
* See also commit d6d20012e116 ("nvme-fabrics: Add FC transport LLDD api
* definitions") # v4.10.
*/
#define FC_PORT_ROLE_NVME_INITIATOR 0x10
#define FC_PORT_ROLE_NVME_TARGET 0x20
#define FC_PORT_ROLE_NVME_DISCOVERY 0x40