include/scsi/osd_protocol.h: remove unnecessary __constant
authorFabian Frederick <fabf@skynet.be>
Sun, 1 Jun 2014 14:06:53 +0000 (16:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Jun 2014 08:36:27 +0000 (10:36 +0200)
__constant_cpu_to_be16 converted to cpu_to_be16

This patch fixes checkpatch warnings:

"WARNING: __constant_cpu_to_be16 should be cpu_to_be16"

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Ack-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/scsi/osd_protocol.h

index 25ac628..a2594af 100644 (file)
@@ -263,16 +263,16 @@ static inline struct osd_cdb_head *osd_cdb_head(struct osd_cdb *ocdb)
  * Ex name = FORMAT_OSD we have OSD_ACT_FORMAT_OSD && OSDv1_ACT_FORMAT_OSD
  */
 #define OSD_ACT___(Name, Num) \
-       OSD_ACT_##Name = __constant_cpu_to_be16(0x8880 + Num), \
-       OSDv1_ACT_##Name = __constant_cpu_to_be16(0x8800 + Num),
+       OSD_ACT_##Name = cpu_to_be16(0x8880 + Num), \
+       OSDv1_ACT_##Name = cpu_to_be16(0x8800 + Num),
 
 /* V2 only actions */
 #define OSD_ACT_V2(Name, Num) \
-       OSD_ACT_##Name = __constant_cpu_to_be16(0x8880 + Num),
+       OSD_ACT_##Name = cpu_to_be16(0x8880 + Num),
 
 #define OSD_ACT_V1_V2(Name, Num1, Num2) \
-       OSD_ACT_##Name = __constant_cpu_to_be16(Num2), \
-       OSDv1_ACT_##Name = __constant_cpu_to_be16(Num1),
+       OSD_ACT_##Name = cpu_to_be16(Num2), \
+       OSDv1_ACT_##Name = cpu_to_be16(Num1),
 
 enum osd_service_actions {
        OSD_ACT_V2(OBJECT_STRUCTURE_CHECK,      0x00)