diff options
author | Hannes Reinecke <hare@suse.de> | 2019-07-24 11:00:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-09 17:52:27 +0200 |
commit | 93d6f0841eef6304c13803a84588f00476b06a14 (patch) | |
tree | 0000314ed8642f41817a0628e6f1bab5777904a5 /block/bsg-lib.c | |
parent | cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65 (diff) | |
download | linux-stable-93d6f0841eef6304c13803a84588f00476b06a14.tar.gz linux-stable-93d6f0841eef6304c13803a84588f00476b06a14.tar.bz2 linux-stable-93d6f0841eef6304c13803a84588f00476b06a14.zip |
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 'block/bsg-lib.c')
0 files changed, 0 insertions, 0 deletions