From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 712F2CA0EFA for ; Tue, 26 Aug 2025 14:43:06 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1094688.1449935 (Exim 4.92) (envelope-from ) id 1uqusn-0002jk-K5; Tue, 26 Aug 2025 14:42:45 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1094688.1449935; Tue, 26 Aug 2025 14:42:45 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uqusn-0002jd-GD; Tue, 26 Aug 2025 14:42:45 +0000 Received: by outflank-mailman (input) for mailman id 1094688; Tue, 26 Aug 2025 14:42:44 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uqusm-0002jX-Ek for xen-devel@lists.xenproject.org; Tue, 26 Aug 2025 14:42:44 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uqusl-007aYq-32; Tue, 26 Aug 2025 14:42:44 +0000 Received: from [2a01:e0a:1da:8420:b77:bd5:6e45:7633] (helo=l14) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uqusl-002P7A-2U; Tue, 26 Aug 2025 14:42:43 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=FFwFzAGGTgkMjBYygtxvyoA45XP8c1SVxiWRIFNMKYY=; b=aDl436IBhGmlSswbojK1/i1J7+ cc56gUOTPoicPWRFSLmwRwnQEQaiQKxGyRowNrzjyZ9lvInvtYdI4VPpgr8Cr8T4DkHptwbbdTgoA +wl+/QS6vvF4kR+gPAoqjcatibYly4Lz/aRMCjUKl4qYH9LW0d56kGczyQP6ubdkKiEE=; Date: Tue, 26 Aug 2025 16:42:42 +0200 From: Anthony PERARD To: Petr =?utf-8?B?QmVuZcWh?= Cc: xen-devel@lists.xenproject.org, Anthony PERARD Subject: Re: [PATCH v5 1/4] tools: add sizeof_field and endof_field macros Message-ID: References: <8dd6b217fbde427407113fedabb70f54d12aed61.1755987697.git.w1benny@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8dd6b217fbde427407113fedabb70f54d12aed61.1755987697.git.w1benny@gmail.com> On Sat, Aug 23, 2025 at 10:26:49PM +0000, Petr Beneš wrote: > From: Petr Beneš > > * `sizeof_field` returns the size of a specific struct member > * `endof_field` returns the offset to the end of the member within the struct > > It will be useful in upcoming layout checks of SMBIOS structs. > > Signed-off-by: Petr Beneš Acked-by: Anthony PERARD -- Anthony PERARD