]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: fix hton24 macro to take expressions as args
authorJoe Eykholt <jeykholt@cisco.com>
Fri, 9 Apr 2010 21:22:39 +0000 (14:22 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 19:02:34 +0000 (14:02 -0500)
commit3aef7d66a3e8e31d4fbb181ea0fbb963390546a9
tree406dc45508b5b23fd0212e7891f577e42e8d159e
parentc1f00efd25a5716760d6579139eb90643fae7107
[SCSI] libfc: fix hton24 macro to take expressions as args

hton24(p + 3, value) would fail to compile because
p + 3[0] is not a valid expression.

Went ahead and converted hton24 and ntoh24 to inline
functions, which is better because the parameters
are evalutated only once.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
include/scsi/libfc.h