From nobody Mon Oct 19 00:48:39 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4j7H3h53wbz6wp6h; Mon, 19 Oct 2026 00:48:48 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4j7H3h3syFz4WDL; Mon, 19 Oct 2026 00:48:48 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792370928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CjwM1PNqOHEm+X476A2yrNQMVEhZSMz3y1oxwc1DV8k=; b=hO7WoP5FyvNFMDUUOSk+IYPPq4THPaR26OH6VgvYh0geW4VKhEd2SJiQHD2vliwiYU5bo4 HtNFBhMQhfOZyZdWuMGvaDKuSY5JMMVfC00eBBV5Yd4vrkE5mYea+f/7HhCdOCHSsBgcmv Co+FDP216kZZySCkdWwYnAjKcdE8PxmD2WoLxRWeVrJZRoK0+K6LbYPiJr4mgsNvWY3tbF L7e1kS+d/oYknBFHVqYy6N3LjHs/5wJuPAh+XZP7vlFpCb0cU5dvVVu4AWUVj01I+NSR7b vL9P92SLl0TuPNwHynv7VB/xTZS0neT8JN3P21KY6lnurYmVfJ/cAI6n8AHW9g== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792370928; b=HLf7JFw3ivadZPgcf2sP9i8gGnUp2kNZvn00zcQwUSMkUWOvDn88Ug0rrshc03dfLf3AVA 8MRul7OHjByYmcJacHf+O+W9Fse0tF4R6UMWquvlsBCIsrwIOANmCFO6dBYImOnY143Czb YJLfTaPMaMhkmEByEpdgGam1s7Bf00ty5brXwiitQb77+XCDbI4SH3FgBEgZudu/WTcnU+ FDMOV9eG/exbWcKUMJCtE6HhlAM/KvCfAToUiJcfG3ZlrMfViYR/2fe0yCbAkCZ7ScNaru 4FprYJ6UU+L8XvjR6ewjWrTvkoRY95b3FjI/ZoBjT+R350XK0/VMQp4pXx76mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792370928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CjwM1PNqOHEm+X476A2yrNQMVEhZSMz3y1oxwc1DV8k=; b=FYlVRzdHSBnsNVISDYz7JzHsC5xIY3t/MITLWnIj5zPn521Fq1t9tAfbIaWcqBVzfJ7A33 9/JbDcyNbcPjop3iGSXOduePoO1EDKZg++PVCvsfTMMeblobn6zIOSuYIzCATQZX343wIi paDrsXT2e4c+n9x8IWYEET7pifK4WBAJ3SvJxnwxyNkJ2bApfa+WXVjDup+QZP39lRRDKC CKfAho6gNTa+MY0pgTIrFffcElr7xSh0pnP+44R/786X6qv1azVEPnbqnj2jxDKADV8Loc ximUIUVQraqWuJOpDR4mFFYMHr9JQLyGZnMW2xAMK5hdSallmtVUIl9cm+xbgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "YE2" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4j7H3h2SjrzrZ5; Mon, 19 Oct 2026 00:48:48 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 648846195706; Mon, 19 Oct 2026 00:48:41 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 421182D029EC; Mon, 19 Oct 2026 00:48:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id G1bdD6sB-D-f; Mon, 19 Oct 2026 00:48:40 +0000 (UTC) Received: from nv.t4-02.sbone.de (nv.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 055172D029D8; Mon, 19 Oct 2026 00:48:39 +0000 (UTC) Date: Mon, 19 Oct 2026 00:48:39 +0000 (UTC) From: "Bjoern A. Zeeb" To: Vladimir Kondratyev cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org, Denis Borovikov Subject: Re: git: fce354b0e9eb - main - linuxkpi: add uuid_t and helpers In-Reply-To: <6ad3d2d2.34326.2602f5fa@gitrepo.freebsd.org> Message-ID: <92363rp7-soq-rsn9-57n6-o6520p5r33p@mnoonqbm.arg> References: <6ad3d2d2.34326.2602f5fa@gitrepo.freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Sat, 17 Oct 2026, Vladimir Kondratyev wrote: > The branch main has been updated by wulf: > > URL: https://cgit.FreeBSD.org/src/commit/?id=fce354b0e9ebd682b251de17bc743d8d855e0cdd > > commit fce354b0e9ebd682b251de17bc743d8d855e0cdd > Author: Denis Borovikov > AuthorDate: 2026-10-17 19:55:17 +0000 > Commit: Vladimir Kondratyev > CommitDate: 2026-10-17 19:55:17 +0000 > > linuxkpi: add uuid_t and helpers > > linux/uuid.h has only the guid_t family. Add uuid_t, next to guid_t, > with uuid_equal(), uuid_copy(), import_uuid() and export_uuid(), > mirroring the guid_ versions. > > Used by drm/virtio for dma-buf UUID export. > > Signed-off-by: Denis Borovikov > Reviewed by: wulf > Differential Revision: https://reviews.freebsd.org/D60199 > --- > sys/compat/linuxkpi/common/include/linux/uuid.h | 30 +++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/sys/compat/linuxkpi/common/include/linux/uuid.h b/sys/compat/linuxkpi/common/include/linux/uuid.h > index 0765ef4dcc1e..2296cc9b881f 100644 > --- a/sys/compat/linuxkpi/common/include/linux/uuid.h > +++ b/sys/compat/linuxkpi/common/include/linux/uuid.h > @@ -60,6 +60,12 @@ typedef struct { > char x[16]; > } guid_t; > > +/* Renamed to stay clear of the other uuid_t types in the tree. */ > +typedef struct { > + uint8_t b[UUID_SIZE]; > +} linux_uuid_t; This should not use the linux_ prefix anymore. If it's a public LinuxKPI linuxkpi_ would be right. Sorry I guess I didn't follow through on the review. > +#define uuid_t linux_uuid_t > + > extern const guid_t guid_null; > > static inline void > @@ -101,4 +107,28 @@ guid_is_null(const guid_t *guid) > return (guid_equal(guid, &guid_null)); > } > > +static inline bool > +uuid_equal(const linux_uuid_t *u1, const linux_uuid_t *u2) > +{ > + return (memcmp(u1, u2, sizeof(linux_uuid_t)) == 0); > +} > + > +static inline void > +uuid_copy(linux_uuid_t *dst, const linux_uuid_t *src) > +{ > + memcpy(dst, src, sizeof(linux_uuid_t)); > +} > + > +static inline void > +import_uuid(linux_uuid_t *dst, const uint8_t *src) > +{ > + memcpy(dst, src, sizeof(linux_uuid_t)); > +} > + > +static inline void > +export_uuid(uint8_t *dst, const linux_uuid_t *src) > +{ > + memcpy(dst, src, sizeof(linux_uuid_t)); > +} > + > #endif /* _LINUXKPI_LINUX_UUID_H */ > > -- For there shall arise false Christs, and false prophets, and shall shew great signs and wonders; insomuch that, if it were possible, they shall deceive the very elect. Behold, I have told you before. [Mat. 24:24-25]