From nobody Tue Feb 10 00:58:29 2026 Received: from mail1.fiberby.net (mail1.fiberby.net [193.104.135.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A42A22FBDEC; Fri, 31 Oct 2025 16:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.104.135.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761926849; cv=none; b=evrKPuNEwSxA75dbYTm9AAvDdChWsOYCwhoB0bCv/FsUU2ZkgKaEb/cFPmZ3Fz2uHEIETCipS/lToauT3zEtej0u2qQZiAx4WCcxyr+Au0bx8/kerosItqVdnwNdwRpA8vrkn9yCdEtk6DCAIda97FhZirqZ7b/YYTpe+DXxtQc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761926849; c=relaxed/simple; bh=a6iHhfPZ+WxXWgSSU0GzwY2TxKP9Vf9YncSXeUje4pE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=n9HqwpDW/L3R0NkxG8O/Yqb3SEa165NKP1U3UC1rL7+/N800hFuJomaPVwHx1acazfCG2EAqZy9M6lbOE/UKUHKtJjKnzxBA8lBhySJgLl+zVhbFF6+G3US9dxlacfXA6bvJAzCf6PaMZRUSFlHYcEjzzARB019o4ppmKUgbG6E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net; spf=pass smtp.mailfrom=fiberby.net; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b=E0fTvG5T; arc=none smtp.client-ip=193.104.135.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fiberby.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="E0fTvG5T" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1761926832; bh=a6iHhfPZ+WxXWgSSU0GzwY2TxKP9Vf9YncSXeUje4pE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E0fTvG5TkdlhKiJnMScHvfm2P+Pv7qKK5kDZoDuyC/1LhSYXEjapYvYwEGS1MUv85 OzhoW659+DjaDu3fs2QDutzoSfgKWM5Tyh7yMnKGw9P5pF1LzCsGEOV25kBvt6B234 QcYH4y7ixn8u1EilwbwlIWIQmODUB+fgCGKgs9Dy7y1zttYdOMAz9kF7nayZFhuMFf s8jkVCIRdFokRZEPU2ImW33Ulb+tQEWpfvIpDf2/XHfJMLii1YxXvrpK4AK8Nu7Wml 1A/VOBfBF1KaQYP45PByhfCELDAwL11xp9RSGdVwobDkY2v0K1oH+s5DVC0DSTD78J RlHW8bvr3eIYA== Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id 432DC60112; Fri, 31 Oct 2025 16:07:12 +0000 (UTC) Received: by x201s (Postfix, from userid 1000) id 759D4204DBC; Fri, 31 Oct 2025 16:05:44 +0000 (UTC) From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= To: "Jason A. Donenfeld" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= , Donald Hunter , Simon Horman , Jacob Keller , Andrew Lunn , wireguard@lists.zx2c4.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 05/11] uapi: wireguard: move enum wg_cmd Date: Fri, 31 Oct 2025 16:05:31 +0000 Message-ID: <20251031160539.1701943-6-ast@fiberby.net> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251031160539.1701943-1-ast@fiberby.net> References: <20251031160539.1701943-1-ast@fiberby.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This patch moves enum wg_cmd to the end of the file, where ynl-gen would like to 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=C3=B8rn Sloth T=C3=B8nnesen --- include/uapi/linux/wireguard.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/uapi/linux/wireguard.h b/include/uapi/linux/wireguard.h index dee4401e0b5d..3ebfffd61269 100644 --- a/include/uapi/linux/wireguard.h +++ b/include/uapi/linux/wireguard.h @@ -11,13 +11,6 @@ =20 #define WG_KEY_LEN 32 =20 -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 =3D 1U << 0, __WGDEVICE_F_ALL =3D WGDEVICE_F_REPLACE_PEERS @@ -73,4 +66,12 @@ enum wgallowedip_attribute { }; #define WGALLOWEDIP_A_MAX (__WGALLOWEDIP_A_LAST - 1) =20 +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 */ --=20 2.51.0