Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp750042rdh; Thu, 23 Nov 2023 18:03:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbQV6RqQ2D3RbdBditXEpdoBr2vL83SL+iFWjA5PD5T3nDrbXUFwzIlkrHw0CDDQGgUG0h X-Received: by 2002:a17:903:32c6:b0:1c9:e765:e14a with SMTP id i6-20020a17090332c600b001c9e765e14amr1467756plr.1.1700791411124; Thu, 23 Nov 2023 18:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700791411; cv=none; d=google.com; s=arc-20160816; b=a8CGFif6La86wKmI5ZENRUgzF1Yodd3lkEkx8p3wbHC3mXp+7MQHCDGSS8Kjfz4ePe vjy/rGVIA5JxhuFQlJqnYzm3B/TXG40FLywxeOPAOHQdH/SXZnaOUYY/4TcMDFowif+R itGkezNyftKQuv8HsRPX4RXYjp1P1Um8n3BZ+K7BPaMCj8ueClwZ06fZDGHto/fUmrGl yDGql9FnxsrbUVNGLmWliQf7T+SX9OgkkrpoDa2gTHYfJgigWsColLdmp960h+U0wf5x t1E5HtkBqXdVEyhxEUHV52/sNAdl0X9ZunKoGjYwrke0MneNM2y27GTpwlfJbt+gbK5T 9kSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IvWguukgndAnT1zZ2JCal7278RS3u0WQUiTyPBWQQiQ=; fh=RBX0EO7BCt4n4lnvPBYFN24o6jFly+IlKRm41n8yo0s=; b=h5/vXFiZAZRCaT7TXaPzSGAFxprOwgNUrC1Xy4405vS7mXaTxAvStqBFDR8l0IAjUR SnE25Os7gnaEeOYWhWN9vyyCnF3F6uB3yPuuBESYnEG3n/DX1Anr/Alfx2Sr8vNoSKop LFffgRUkbLHp2bUJyiMSI0OixA1DR/dPst/uR+7slOVk5a9+Kprcdr5IDfOf39evpJQw 1nhWDIFzzdcyHBA0ckHClPh7PkUDXpe+6MPbxoWpXZQnQoyIKQYU01nzSMjWAyBnBlsw +bptMoAwTTOzpGG9JR8eb/6a3aRMWPy0vssh6GTpNf1nUGVcW/yXZ62VWG5b6r7zuG4p eh0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z1rX6Y/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h6-20020a170902680600b001c62139b164si2284373plk.38.2023.11.23.18.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 18:03:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z1rX6Y/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 4C6FC82DDAC9; Thu, 23 Nov 2023 18:03:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232704AbjKXCDK (ORCPT + 99 others); Thu, 23 Nov 2023 21:03:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbjKXCCz (ORCPT ); Thu, 23 Nov 2023 21:02:55 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E2A171E for ; Thu, 23 Nov 2023 18:02:54 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABA6FC433C8; Fri, 24 Nov 2023 02:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700791374; bh=gORzZnTnBE2H3oHce9S3/9lGlc/hZRFZ0MDxFGFZxTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z1rX6Y/qnWHG7DB8DhMf+Oo6R83MLcYs5VO8KN29H1f0Uno04N+VG8nWMYbLrOrM9 54L5a/kFUw3OX1GkLd+pYmXX8puiHLJP3k5e1+LA2x35G7Qukcc9SYCnagVaR17CYu pHrfN2Mw+MrG78Iozu7C4tYfBxgmz11+rI3iB7aHPk3lCHVv1AQ0F7XdEH2ObXbhkd /ASdym8QobCwuqXiUaeSQfh/5K2HJBn5ttlE4Puh9X1TtTQG2d3spuGB7OfIOBv3pH U3MJ0AFdGXS0fCNTi+7S34YRf7QxWXD/n2emLIaB0OolgbahX2jOzPBFQhZMkQh09r Y3jC5GHTQH3nw== From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jarkko Sakkinen , James Bottomley , William Roberts , Stefan Berger , David Howells , Jason Gunthorpe , Mimi Zohar , Mario Limonciello , Jerry Snitselaar Subject: [PATCH v6 4/8] tpm: Update struct tpm_buf documentation comments Date: Fri, 24 Nov 2023 04:02:33 +0200 Message-ID: <20231124020237.27116-5-jarkko@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231124020237.27116-1-jarkko@kernel.org> References: <20231124020237.27116-1-jarkko@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 18:03:26 -0800 (PST) Remove deprecated portions and document enum values. 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(-) 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; -/* A string buffer type for constructing TPM commands. This is based on 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: */ TPM_BUF_OVERFLOW = BIT(0), }; +/* + * A string buffer type for constructing TPM commands. + */ struct tpm_buf { unsigned int flags; u8 *data; -- 2.43.0