diff options
author | Hannes Reinecke <hare@suse.de> | 2019-07-24 11:00:55 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-07-29 21:12:35 -0400 |
commit | 023358b136d490ca91735ac6490db3741af5a8bd (patch) | |
tree | be5370ccb0eb4ca07c29875a25de42d56d8e6416 /include/scsi/libfcoe.h | |
parent | f3e4ff28b8685d856f381ee6bcf88b6149a6db5b (diff) | |
download | lwn-023358b136d490ca91735ac6490db3741af5a8bd.tar.gz lwn-023358b136d490ca91735ac6490db3741af5a8bd.zip |
scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure
Gcc-9 complains for a memset across pointer boundaries, which happens as
the code tries to allocate a flexible array on the stack. Turns out we
cannot do this without relying on gcc-isms, so with this patch we'll embed
the fc_rport_priv structure into fcoe_rport, can use the normal
'container_of' outcast, and will only have to do a memset over one
structure.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi/libfcoe.h')
-rw-r--r-- | include/scsi/libfcoe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index dc14b52577f7..2568cb0627ec 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h @@ -229,6 +229,7 @@ struct fcoe_fcf { * @vn_mac: VN_Node assigned MAC address for data */ struct fcoe_rport { + struct fc_rport_priv rdata; unsigned long time; u16 fcoe_len; u16 flags; |