endian question about struct srp_direct_buf

2012-01-12 Thread Dan Carpenter
Sparse complains because len in struct srp_direct_buf is declared as big endian but it's used throughout as CPU endian. struct srp_indirect_buf has the same thing. It's declared one way but used the other way. $ grep -w len drivers/scsi -R | grep -w md drivers/scsi/ibmvscsi/ibmvfc.c:

Re: endian question about struct srp_direct_buf

2012-01-12 Thread Bart Van Assche
On Thu, Jan 12, 2012 at 12:41 PM, Dan Carpenter dan.carpen...@oracle.com wrote: Sparse complains because len in struct srp_direct_buf is declared as big endian but it's used throughout as CPU endian.  struct srp_indirect_buf has the same thing.  It's declared one way but used the other way.