diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-04-30 23:30:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-01 15:45:16 -0700 |
commit | dc30b4059f6e2abf3712ab537c8718562b21c45d (patch) | |
tree | 54aa52b437c67559860d908d63701bbacbb65278 /net/sched | |
parent | 846c68f7f1ac82c797a2f1db3344a2966c0fe2e1 (diff) |
drop_monitor: work around gcc-10 stringop-overflow warning
The current gcc-10 snapshot produces a false-positive warning:
net/core/drop_monitor.c: In function 'trace_drop_common.constprop':
cc1: error: writing 8 bytes into a region of size 0 [-Werror=stringop-overflow=]
In file included from net/core/drop_monitor.c:23:
include/uapi/linux/net_dropmon.h:36:8: note: at offset 0 to object 'entries' with size 4 declared here
36 | __u32 entries;
| ^~~~~~~
I reported this in the gcc bugzilla, but in case it does not get
fixed in the release, work around it by using a temporary variable.
Fixes: 9a8afc8d3962 ("Network Drop Monitor: Adding drop monitor implementation & Netlink protocol")
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94881
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions