diff options
author | Jayamohan Kallickal <jayamohank@serverengines.com> | 2010-07-21 18:46:00 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:05:28 -0400 |
commit | 457ff3b7dc3796d8778286217ad304ff122e948f (patch) | |
tree | 32a0a7e6c67d2bb564efc9238abefa9239d38c72 /drivers/scsi/be2iscsi/be.h | |
parent | bbe56c734cc1ecccd7b2b143e1767bf2b1eafc76 (diff) |
[SCSI] be2iscsi: Fix warnings from new checkpatch.pl
The latest checkpatch.pl throws some new warnings. Fixing it
to get rid of a bunch of warnings
Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi/be.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/be2iscsi/be.h b/drivers/scsi/be2iscsi/be.h index 136b49cea791..1cb8a5e85c7f 100644 --- a/drivers/scsi/be2iscsi/be.h +++ b/drivers/scsi/be2iscsi/be.h | |||
@@ -128,8 +128,8 @@ struct be_ctrl_info { | |||
128 | #define mcc_timeout 120000 /* 5s timeout */ | 128 | #define mcc_timeout 120000 /* 5s timeout */ |
129 | 129 | ||
130 | /* Returns number of pages spanned by the data starting at the given addr */ | 130 | /* Returns number of pages spanned by the data starting at the given addr */ |
131 | #define PAGES_4K_SPANNED(_address, size) \ | 131 | #define PAGES_4K_SPANNED(_address, size) \ |
132 | ((u32)((((size_t)(_address) & (PAGE_SIZE_4K - 1)) + \ | 132 | ((u32)((((size_t)(_address) & (PAGE_SIZE_4K - 1)) + \ |
133 | (size) + (PAGE_SIZE_4K - 1)) >> PAGE_SHIFT_4K)) | 133 | (size) + (PAGE_SIZE_4K - 1)) >> PAGE_SHIFT_4K)) |
134 | 134 | ||
135 | /* Byte offset into the page corresponding to given address */ | 135 | /* Byte offset into the page corresponding to given address */ |
@@ -137,7 +137,7 @@ struct be_ctrl_info { | |||
137 | ((size_t)(addr) & (PAGE_SIZE_4K-1)) | 137 | ((size_t)(addr) & (PAGE_SIZE_4K-1)) |
138 | 138 | ||
139 | /* Returns bit offset within a DWORD of a bitfield */ | 139 | /* Returns bit offset within a DWORD of a bitfield */ |
140 | #define AMAP_BIT_OFFSET(_struct, field) \ | 140 | #define AMAP_BIT_OFFSET(_struct, field) \ |
141 | (((size_t)&(((_struct *)0)->field))%32) | 141 | (((size_t)&(((_struct *)0)->field))%32) |
142 | 142 | ||
143 | /* Returns the bit mask of the field that is NOT shifted into location. */ | 143 | /* Returns the bit mask of the field that is NOT shifted into location. */ |