Files
Arnd Bergmann 04aee1c72e UPSTREAM: 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.

Change-Id: Ic998cb2e2156a1965ca12ace7d8c82a0ecfca27e
Fixes: 9a8afc8d39 ("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>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(cherry picked from commit dc30b4059f)
2022-11-11 01:44:53 +08:00
..
2019-09-21 08:03:02 +02:00
2019-09-21 08:03:02 +02:00
2019-09-16 08:13:35 +02:00
2019-08-11 15:41:31 +02:00
2019-06-22 08:18:25 +02:00
2019-03-23 08:44:34 +01:00
2019-02-23 10:11:24 +01:00
2019-03-23 08:44:30 +01:00
2019-09-16 09:48:34 +02:00
2019-01-13 10:05:28 +01:00