diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-25 22:52:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-25 22:52:24 +0200 |
commit | a3a8b54b4f1a261656eb6c9a517e68e1204cef39 (patch) | |
tree | 5d98bbeda55b96c3834a3221de599f9adafa2807 /include/scsi | |
parent | Merge tag 'net-next-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ne... (diff) | |
parent | drm/i915: Fix -Wstringop-overflow warning in call to intel_read_wm_latency() (diff) | |
download | linux-a3a8b54b4f1a261656eb6c9a517e68e1204cef39.tar.xz linux-a3a8b54b4f1a261656eb6c9a517e68e1204cef39.zip |
Merge tag 'Wstringop-overflow-fixes-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
Pull Wstringop-overflow fixes from Gustavo Silva:
"Fix some -Wstringop-overflow warnings when building with GCC-11. All
the patches have been in linux-next during the last development cycle.
This is part of the ongoing efforts to globally enable
-Wstringop-overflow"
* tag 'Wstringop-overflow-fixes-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
drm/i915: Fix -Wstringop-overflow warning in call to intel_read_wm_latency()
drm/amd/display: Fix Wstringop-overflow warnings in dc_link_dp.c
scsi: fcoe: Fix Wstringop-overflow warnings in fcoe_wwn_from_mac()
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libfcoe.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index fac8e89aed81..310e0dbffda9 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h @@ -249,7 +249,8 @@ int fcoe_ctlr_recv_flogi(struct fcoe_ctlr *, struct fc_lport *, struct fc_frame *); /* libfcoe funcs */ -u64 fcoe_wwn_from_mac(unsigned char mac[MAX_ADDR_LEN], unsigned int, unsigned int); +u64 fcoe_wwn_from_mac(unsigned char mac[ETH_ALEN], unsigned int scheme, + unsigned int port); int fcoe_libfc_config(struct fc_lport *, struct fcoe_ctlr *, const struct libfc_function_template *, int init_fcp); u32 fcoe_fc_crc(struct fc_frame *fp); |