lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250904220255.1006675-5-ast@fiberby.net>
Date: Thu,  4 Sep 2025 22:02:39 +0000
From: Asbjørn Sloth Tønnesen <ast@...erby.net>
To: "Jason A. Donenfeld" <Jason@...c4.com>,
	"David S. Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>,
	Paolo Abeni <pabeni@...hat.com>
Cc: Asbjørn Sloth Tønnesen <ast@...erby.net>,
	Donald Hunter <donald.hunter@...il.com>,
	Simon Horman <horms@...nel.org>,
	Jacob Keller <jacob.e.keller@...el.com>,
	Andrew Lunn <andrew+netdev@...n.ch>,
	wireguard@...ts.zx2c4.com,
	netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [RFC net-next 05/14] uapi: wireguard: use __*_A_MAX in enums

This patch renames enum members from __*_A_LAST to __*_A_MAX.

This is an incremental step towards adopting an UAPI header
generated by YNL.

This is a trivial patch with no behavioural changes intended.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@...erby.net>
---
 include/uapi/linux/wireguard.h | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/include/uapi/linux/wireguard.h b/include/uapi/linux/wireguard.h
index dee4401e0b5d..c2bb2463211a 100644
--- a/include/uapi/linux/wireguard.h
+++ b/include/uapi/linux/wireguard.h
@@ -32,9 +32,10 @@ enum wgdevice_attribute {
 	WGDEVICE_A_LISTEN_PORT,
 	WGDEVICE_A_FWMARK,
 	WGDEVICE_A_PEERS,
-	__WGDEVICE_A_LAST
+
+	__WGDEVICE_A_MAX
 };
-#define WGDEVICE_A_MAX (__WGDEVICE_A_LAST - 1)
+#define WGDEVICE_A_MAX (__WGDEVICE_A_MAX - 1)
 
 enum wgpeer_flag {
 	WGPEER_F_REMOVE_ME = 1U << 0,
@@ -55,9 +56,10 @@ enum wgpeer_attribute {
 	WGPEER_A_TX_BYTES,
 	WGPEER_A_ALLOWEDIPS,
 	WGPEER_A_PROTOCOL_VERSION,
-	__WGPEER_A_LAST
+
+	__WGPEER_A_MAX
 };
-#define WGPEER_A_MAX (__WGPEER_A_LAST - 1)
+#define WGPEER_A_MAX (__WGPEER_A_MAX - 1)
 
 enum wgallowedip_flag {
 	WGALLOWEDIP_F_REMOVE_ME = 1U << 0,
@@ -69,8 +71,9 @@ enum wgallowedip_attribute {
 	WGALLOWEDIP_A_IPADDR,
 	WGALLOWEDIP_A_CIDR_MASK,
 	WGALLOWEDIP_A_FLAGS,
-	__WGALLOWEDIP_A_LAST
+
+	__WGALLOWEDIP_A_MAX
 };
-#define WGALLOWEDIP_A_MAX (__WGALLOWEDIP_A_LAST - 1)
+#define WGALLOWEDIP_A_MAX (__WGALLOWEDIP_A_MAX - 1)
 
 #endif /* _WG_UAPI_WIREGUARD_H */
-- 
2.51.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ