summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2019-07-24 11:00:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-25 10:53:04 +0200
commit483b26014fff2063cf1d62c37a697d6eff999c03 (patch)
tree9e60187666e8d26ec26ae5201b92437cb9d8c93e /drivers/infiniband
parent1ac31ce0179b88a9b594aaa801f34652188aee2f (diff)
scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure
commit 023358b136d490ca91735ac6490db3741af5a8bd upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions