Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2457485rdb; Sun, 3 Dec 2023 18:41:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IElJQ1Uqq3tj/uxrdLnL2voJxf5i3q++jlirxvPfPCKN8Ds+5mqrlU+i4MCRU2Pw4n6bMmD X-Received: by 2002:a05:6358:9106:b0:170:339f:c026 with SMTP id q6-20020a056358910600b00170339fc026mr657486rwq.62.1701657673763; Sun, 03 Dec 2023 18:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701657673; cv=none; d=google.com; s=arc-20160816; b=SbdNzvLqtnVbgEfrb5yYnkRaXpB4gHz6HvkNURRZXPMTKrIWRvQM1jcCNH6iXepPM/ yCQWPF/A/bdb0K7eyAkOOl44TAi9R1i7ygZi5uQHtJGvTRaZDwfqVIjlp/XNHVur799e 7gvMnz2G/e8lepnr5D0wWeIQHq0+Zy4FiYXZAoIatUdLle2AD5BIYSrRSdaFeB7m8slC IE+HxVdV0/tuqUVaQTrC+XqpUHtkCY30rr8v4MajC7TRK9pAMnepNDq0aEuY2FAU7U/i AlP8J2+Y7a9Nrx7cxZUaB1FU+vXxZrjd9C576JruFL73wft077yhF1tsDWNZSu72yKpv 0BGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=AsQd+AuEaB/plbiE/ryRzXk5LLuArst/WL6CGfrbN94=; fh=YCtYRvkBdip0JlM7S4hy2bIU8Niaf5ZVfq6FAyiS0O4=; b=pKJwwNcmCYOU9m1dBhjMFHr/dQS6mWFCCoiUh/iasBFKTGBsyERj6Bss095+350qBO J3Hw9Kw+PFHKptqxPPb8E1wirTX2xYsDIYuD9LCz//QE9gWo934UNDipEIPggVyAstL3 WiStp9PXjT7tzVWrarmU+Tq5CtrJm/hJA9WDkP0wUdwFQeter5/1bI0C79j4UHhBlngN j+jr0ISUOLGxBU44bV+8n2UgGxX20ABQzmXwLfg1W74dubmnI7853dCRVJSFIHPvQJDV lq+vvEg4oZPMKE5L6FuL/WiOpmK7spj97lSQ74zgc2yrzba0H/p7tmv5GwUdxJIoApod VG3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sqWUdAgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id d20-20020a056a0010d400b006cda012bf20si7121754pfu.264.2023.12.03.18.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 18:41:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sqWUdAgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F172F80608F8; Sun, 3 Dec 2023 18:40:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229918AbjLDCkZ (ORCPT + 99 others); Sun, 3 Dec 2023 21:40:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjLDCkX (ORCPT ); Sun, 3 Dec 2023 21:40:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50D4DC3 for ; Sun, 3 Dec 2023 18:40:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DE94C433C7; Mon, 4 Dec 2023 02:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701657630; bh=+1h7orpNR6s8aU7j2WouWuvwhoBP56nu407wmiCjx6o=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=sqWUdAghbTGgJmbgMKCZNEYQLXSRx8zdfcx1nDdIJqXu+okcOeYaOIg/8c30Q6Kjv upHpZS/ldRcH3EASHRlREI3D4FKPti1iHTYJsYcBbGj7XRSHMDNaYYai9laZbyds7s t2cxOLLWckmgK/D7yFCHaVeR1dMsExdzTyg5+TPgPVbbq1oBH0z7Oi9CjlsAOyDCYt qHIKdpX5M4SrCvntX1kV3zkdHREgQclWKGvdGIgYsxfwTRnaL2V9MS32TfVaofsIa1 3z+TeriMuScbayosVDhERIhhVn+2zWATcGcjKb1eOyvPVmZ4VOjeI23S+zCIGid4yk 11SnCC11JKZsg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 04 Dec 2023 04:40:24 +0200 Message-Id: Subject: Re: [PATCH v6 4/8] tpm: Update struct tpm_buf documentation comments From: "Jarkko Sakkinen" To: "Stefan Berger" , Cc: , "James Bottomley" , "William Roberts" , "David Howells" , "Jason Gunthorpe" , "Mimi Zohar" , "Mario Limonciello" , "Jerry Snitselaar" X-Mailer: aerc 0.15.2 References: <20231124020237.27116-1-jarkko@kernel.org> <20231124020237.27116-5-jarkko@kernel.org> In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 03 Dec 2023 18:40:40 -0800 (PST) On Mon Nov 27, 2023 at 10:41 PM EET, Stefan Berger wrote: > > > On 11/23/23 21:02, Jarkko Sakkinen wrote: > > Remove deprecated portions and document enum values. > >=20 > > Signed-off-by: Jarkko Sakkinen > > --- > > v1 [2023-11-21]: A new patch. > > v2 [2023-11-24]: Refined the commit message a bit. > > --- > > include/linux/tpm.h | 9 ++++----- > > 1 file changed, 4 insertions(+), 5 deletions(-) > >=20 > > diff --git a/include/linux/tpm.h b/include/linux/tpm.h > > index bb0e8718a432..0a8c1351adc2 100644 > > --- a/include/linux/tpm.h > > +++ b/include/linux/tpm.h > > @@ -297,15 +297,14 @@ struct tpm_header { > > }; > > } __packed; > > =20 > > -/* A string buffer type for constructing TPM commands. This is based o= n the > > - * ideas of string buffer code in security/keys/trusted.h but is heap = based > > - * in order to keep the stack usage minimal. > > - */ > > - > > enum tpm_buf_flags { > > + /* the capacity exceeded: */ > > was exceeded +1, agreed a better form :-) > > > TPM_BUF_OVERFLOW =3D BIT(0), > > }; > > =20 > > +/* > > + * A string buffer type for constructing TPM commands. > > + */ > > struct tpm_buf { > > unsigned int flags; > > u8 *data; > > Reviewed-by: Stefan Berger If possible give this to the James' patch set, thank you for the review. BR, Jarkko