]> Gentwo Git Trees - linux/.git/commitdiff
wireguard: uapi: move enum wg_cmd
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Wed, 26 Nov 2025 17:35:38 +0000 (17:35 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 2 Dec 2025 03:12:49 +0000 (04:12 +0100)
This patch moves enum wg_cmd to the end of the file, where ynl-gen
would generate it.

This is an incremental step towards adopting an UAPI header generated
by ynl-gen. This is split out to keep the patches readable.

This is a trivial patch with no behavioural changes intended.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
include/uapi/linux/wireguard.h

index dee4401e0b5df3a7c5c2291f4b79537219204e28..3ebfffd61269a4225c62e20cb3ef3db5d1414cbc 100644 (file)
 
 #define WG_KEY_LEN 32
 
-enum wg_cmd {
-       WG_CMD_GET_DEVICE,
-       WG_CMD_SET_DEVICE,
-       __WG_CMD_MAX
-};
-#define WG_CMD_MAX (__WG_CMD_MAX - 1)
-
 enum wgdevice_flag {
        WGDEVICE_F_REPLACE_PEERS = 1U << 0,
        __WGDEVICE_F_ALL = WGDEVICE_F_REPLACE_PEERS
@@ -73,4 +66,12 @@ enum wgallowedip_attribute {
 };
 #define WGALLOWEDIP_A_MAX (__WGALLOWEDIP_A_LAST - 1)
 
+enum wg_cmd {
+       WG_CMD_GET_DEVICE,
+       WG_CMD_SET_DEVICE,
+
+       __WG_CMD_MAX
+};
+#define WG_CMD_MAX (__WG_CMD_MAX - 1)
+
 #endif /* _WG_UAPI_WIREGUARD_H */