WSL2-Linux-Kernel/drivers/net/wireguard
Jiri Slaby (SUSE) a646556769 wireguard: timers: cast enum limits members to int in prints
commit 2d4ee16d96 upstream.

Since gcc13, each member of an enum has the same type as the enum. And
that is inherited from its members. Provided "REKEY_AFTER_MESSAGES =
1ULL << 60", the named type is unsigned long.

This generates warnings with gcc-13:
  error: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int'

Cast those particular enum members to int when printing them.

Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113
Cc: Martin Liska <mliska@suse.cz>
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/all/20221213225208.3343692-2-Jason@zx2c4.com/
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Cc: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:00:15 +09:00
..
selftest wireguard: ratelimiter: disable timings test by default 2022-09-28 11:11:50 +02:00
Makefile wireguard: do not use -O3 2021-06-04 14:25:14 -07:00
allowedips.c wireguard: allowedips: don't corrupt stack when detecting overflow 2022-08-17 14:23:37 +02:00
allowedips.h wireguard: allowedips: free empty intermediate nodes when removing single node 2021-06-04 14:25:14 -07:00
cookie.c
cookie.h
device.c wireguard: device: check for metadata_dst with skb_valid_dst() 2022-05-09 09:14:35 +02:00
device.h wireguard: receive: use ring buffer for incoming handshakes 2021-12-08 09:04:46 +01:00
main.c wireguard: allowedips: allocate nodes in kmem_cache 2021-06-04 14:25:14 -07:00
messages.h
netlink.c wireguard: netlink: avoid variable-sized memcpy on sockaddr 2022-09-28 11:11:51 +02:00
netlink.h
noise.c lib/crypto: blake2s: move hmac construction into wireguard 2022-05-30 09:28:59 +02:00
noise.h
peer.c wireguard: peer: allocate in kmem_cache 2021-06-04 14:25:14 -07:00
peer.h wireguard: peer: allocate in kmem_cache 2021-06-04 14:25:14 -07:00
peerlookup.c
peerlookup.h
queueing.c wireguard: queueing: use CFI-safe ptr_ring cleanup function 2022-04-08 14:24:09 +02:00
queueing.h wireguard: receive: use ring buffer for incoming handshakes 2021-12-08 09:04:46 +01:00
ratelimiter.c wireguard: ratelimiter: use kvcalloc() instead of kvzalloc() 2021-12-08 09:04:46 +01:00
ratelimiter.h
receive.c wireguard: receive: drop handshakes if queue lock is contended 2021-12-08 09:04:46 +01:00
send.c wireguard: queueing: get rid of per-peer ring buffers 2021-02-23 15:59:34 -08:00
socket.c wireguard: socket: ignore v6 endpoints when ipv6 is disabled 2022-04-08 14:24:09 +02:00
socket.h
timers.c wireguard: timers: cast enum limits members to int in prints 2023-05-11 23:00:15 +09:00
timers.h
version.h