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