Fix misc new gcc warnings
Linus Torvalds authored
commit e7c6e405 upstream.

It seems like Fedora 34 ends up enabling a few new gcc warnings, notably
"-Wstringop-overread" and "-Warray-parameter".

Both of them cause what seem to be valid warnings in the kernel, where
we have array size mismatches in function arguments (that are no longer
just silently converted to a pointer to element, but actually checked).

This fixes most of the trivial ones, by making the function declaration
match the function definition, and in the case of intel_pm.c, removing
the over-specified array size from the argument declaration.

At least one 'stringop-overread' warning remains in the i915 driver, but
that one doesn't have the same obvious trivial fix, and may or may not
actually be indicative of a bug.

[ It was a mistake to upgrade one of my machines to Fedora 34 while
  being busy with the merge window, but if this is the extent of the
  compiler upgrade problems, things are better than usual    - Linus ]

Signed...
564b1868
Name Last commit Last update
..
6lowpan 6lowpan: no need to check return value of debugfs_create functions
802 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
8021q net: vlan: avoid leaks on register_vlan_dev() failures
9p net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid
appletalk appletalk: Fix skb allocation size in loopback case
atm atm: fix a memory leak of vcc->user_back
ax25 AX.25: Prevent integer overflows in connect and sendmsg
batman-adv batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field
bluetooth Fix misc new gcc warnings
bpf bpf/flow_dissector: support flags in BPF_PROG_TEST_RUN
bpfilter net/bpfilter: remove superfluous testing message
bridge netfilter: bridge: add pre_exit hooks for ebtable unregistration
caif net: use skb_queue_empty_lockless() in poll() handlers
can can: bcm/raw: fix msg_namelen values depending on CAN_REQUIRED_SIZE
ceph libceph: clear con->out_msg on Policy::stateful_server faults
core gro: ensure frag0 meets IP header alignment
dcb net: dcb: Accept RTM_GETDCB messages carrying set-like DCB commands
dccp ipv6: weaken the v4mapped source check
decnet net: add bool confirm_neigh parameter for dst_ops.update_pmtu
dns_resolver KEYS: Don't write out to userspace while holding key semaphore
dsa net: dsa: tag_mtk: fix 802.1ad VLAN egress
ethernet net: add annotations on hh->hh_len lockless accesses
hsr net: hsr: Reset MAC header for Tx path
ieee802154 net: ieee802154: forbid monitor for add llsec seclevel
ife net: Fix Kconfig indentation
ipv4
ipv6
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211
mac802154
mpls
ncsi
netfilter
netlabel
netlink
netrom
nfc
nsh
openvswitch
packet
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched
sctp
smc
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock
wimax
wireless
x25
xdp
xfrm
Kconfig
Makefile
compat.c
socket.c
sysctl_net.c