aboutsummaryrefslogtreecommitdiff
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2022-10-31 12:43:54 +0100
committerJakub Kicinski <[email protected]>2022-11-02 20:38:08 -0700
commit7d84118229bf7f7290438c85caa8e49de52d50c1 (patch)
tree88c4fbb48da4fe94dff1501a63f99a4cd820c5f8 /net/unix/unix_bpf.c
parent471ef777ec79baadc5cd9773d08f95f49cf5e2b1 (diff)
qed (gcc13): use u16 for fid to be big enough
gcc 13 correctly reports overflow in qed_grc_dump_addr_range(): In file included from drivers/net/ethernet/qlogic/qed/qed.h:23, from drivers/net/ethernet/qlogic/qed/qed_debug.c:10: drivers/net/ethernet/qlogic/qed/qed_debug.c: In function 'qed_grc_dump_addr_range': include/linux/qed/qed_if.h:1217:9: error: overflow in conversion from 'int' to 'u8' {aka 'unsigned char'} changes value from '(int)vf_id << 8 | 128' to '128' [-Werror=overflow] We do: u8 fid; ... fid = vf_id << 8 | 128; Since fid is 16bit (and the stored value above too), fid should be u16, not u8. Fix that. Cc: Martin Liska <[email protected]> Cc: Ariel Elior <[email protected]> Cc: Manish Chopra <[email protected]> Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions