]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
scsi: remove private BIT macros
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 11 Aug 2010 01:01:26 +0000 (18:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:01 +0000 (08:59 -0700)
A couple of scsi drivers define a BIT() macro, duplicating the one in
bitops.h.

Cc: Jing Huang <huangj@brocade.com>
Cc: Robert Love <robert.w.love@intel.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/bfa/include/protocol/fcp.h
drivers/scsi/fnic/fnic.h

index 9ade68ad285381e1f1a0383efba16bcae90be53e..74ea63ce84b73cc5e4b66669ff5d13763456565e 100644 (file)
@@ -18,6 +18,7 @@
 #ifndef __FCPPROTO_H__
 #define __FCPPROTO_H__
 
+#include <linux/bitops.h>
 #include <protocol/scsi.h>
 
 #pragma pack(1)
@@ -102,9 +103,6 @@ enum {
 /*
  * Task management flags field - only one bit shall be set
  */
-#ifndef BIT
-#define BIT(_x)        (1 << (_x))
-#endif
 enum fcp_tm_cmnd{
        FCP_TM_ABORT_TASK_SET   = BIT(1),
        FCP_TM_CLEAR_TASK_SET   = BIT(2),
index 19338e0ba2c5b2b943e3e9e3003f6fc8326d2953..cbb20b13b2288957ad39781e774bcd8891245da5 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/interrupt.h>
 #include <linux/netdevice.h>
 #include <linux/workqueue.h>
+#include <linux/bitops.h>
 #include <scsi/libfc.h>
 #include <scsi/libfcoe.h>
 #include "fnic_io.h"
@@ -49,7 +50,6 @@
 /*
  * Tag bits used for special requests.
  */
-#define BIT(nr)                        (1UL << (nr))
 #define FNIC_TAG_ABORT         BIT(30)         /* tag bit indicating abort */
 #define FNIC_TAG_DEV_RST       BIT(29)         /* indicates device reset */
 #define FNIC_TAG_MASK          (BIT(24) - 1)   /* mask for lookup */