[PATCH 0/4] libfc,fcoe: cleanup fc_rport_priv usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

the fcoe vn2vn code is using the 'fc_rport_priv' structure as argument to its
internal function, but is really expecting a struct fcoe_rport to immediately
follow this one. This is not only confusing but also an error for new compilers.
So clean up the usage by embedding fc_rport_priv into fcoe_rport, and use the
fcoe_rport structure wherever possible.
This patchset also contains some minor cleanups to the libfc code, fixing
up whitespaces and dropping an unused callback.

As usual, comments and reviews are welcome.

Hannes Reinecke (4):
  libfc: kill lld_event_callback
  libfc: Whitespqce cleanup in libfc.h
  fcoe: avoid memset across pointer boundaries
  fcoe: pass in fcoe_rport structure instead of fc_rport_priv

 drivers/scsi/fcoe/fcoe_ctlr.c | 140 ++++++++++++++++++++----------------------
 drivers/scsi/libfc/fc_rport.c |  18 +++---
 include/scsi/libfc.h          |  55 ++++++++---------
 include/scsi/libfcoe.h        |   1 +
 4 files changed, 104 insertions(+), 110 deletions(-)

-- 
2.16.4




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux