diff options
-rw-r--r-- | drivers/scsi/bfa/include/protocol/fcp.h | 4 | ||||
-rw-r--r-- | drivers/scsi/fnic/fnic.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/bfa/include/protocol/fcp.h b/drivers/scsi/bfa/include/protocol/fcp.h index 9ade68ad285..74ea63ce84b 100644 --- a/drivers/scsi/bfa/include/protocol/fcp.h +++ b/drivers/scsi/bfa/include/protocol/fcp.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #ifndef __FCPPROTO_H__ | 18 | #ifndef __FCPPROTO_H__ |
19 | #define __FCPPROTO_H__ | 19 | #define __FCPPROTO_H__ |
20 | 20 | ||
21 | #include <linux/bitops.h> | ||
21 | #include <protocol/scsi.h> | 22 | #include <protocol/scsi.h> |
22 | 23 | ||
23 | #pragma pack(1) | 24 | #pragma pack(1) |
@@ -102,9 +103,6 @@ enum { | |||
102 | /* | 103 | /* |
103 | * Task management flags field - only one bit shall be set | 104 | * Task management flags field - only one bit shall be set |
104 | */ | 105 | */ |
105 | #ifndef BIT | ||
106 | #define BIT(_x) (1 << (_x)) | ||
107 | #endif | ||
108 | enum fcp_tm_cmnd{ | 106 | enum fcp_tm_cmnd{ |
109 | FCP_TM_ABORT_TASK_SET = BIT(1), | 107 | FCP_TM_ABORT_TASK_SET = BIT(1), |
110 | FCP_TM_CLEAR_TASK_SET = BIT(2), | 108 | FCP_TM_CLEAR_TASK_SET = BIT(2), |
diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h index 19338e0ba2c..cbb20b13b22 100644 --- a/drivers/scsi/fnic/fnic.h +++ b/drivers/scsi/fnic/fnic.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/netdevice.h> | 22 | #include <linux/netdevice.h> |
23 | #include <linux/workqueue.h> | 23 | #include <linux/workqueue.h> |
24 | #include <linux/bitops.h> | ||
24 | #include <scsi/libfc.h> | 25 | #include <scsi/libfc.h> |
25 | #include <scsi/libfcoe.h> | 26 | #include <scsi/libfcoe.h> |
26 | #include "fnic_io.h" | 27 | #include "fnic_io.h" |
@@ -49,7 +50,6 @@ | |||
49 | /* | 50 | /* |
50 | * Tag bits used for special requests. | 51 | * Tag bits used for special requests. |
51 | */ | 52 | */ |
52 | #define BIT(nr) (1UL << (nr)) | ||
53 | #define FNIC_TAG_ABORT BIT(30) /* tag bit indicating abort */ | 53 | #define FNIC_TAG_ABORT BIT(30) /* tag bit indicating abort */ |
54 | #define FNIC_TAG_DEV_RST BIT(29) /* indicates device reset */ | 54 | #define FNIC_TAG_DEV_RST BIT(29) /* indicates device reset */ |
55 | #define FNIC_TAG_MASK (BIT(24) - 1) /* mask for lookup */ | 55 | #define FNIC_TAG_MASK (BIT(24) - 1) /* mask for lookup */ |