Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3380024rdh; Mon, 27 Nov 2023 12:42:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOk0SCeiXjb3cz0OJcJaroMJnLOTzQgR0BlPJCPJTegcV0X0muR23Jdrf+8m0dEusOVnYy X-Received: by 2002:a05:6a21:788e:b0:18a:fbd1:8e6d with SMTP id bf14-20020a056a21788e00b0018afbd18e6dmr13446158pzc.27.1701117729552; Mon, 27 Nov 2023 12:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701117729; cv=none; d=google.com; s=arc-20160816; b=RR9b3phqXz9N3RWXBg+xlZg43TbSrgFGXHnHQuYOHkW3UGLfw2WH9VUIPXmAyFCxya RdCkHqFSwgMX9DNa2IHS3SSqpYmL5ZnDNGA7IzelkdrhJlBhWuLCcIm0dvk1njDuL4V6 /baw4LVpH5ul8Hke4aoFCkPSd32X2rb9VegsZlCXFwcmM51yaNY2JJrszY7EEgLoaN+E 7Z/pPx0PPLXUFvxkH1ULMyZOBeAP2YHUPWCFNBdRJCmFjWyDihiMPwrief7JJn9dV9+s rabPSzEZ3mdkI8hwZ4g0g2inHB3jXVw5rj+k5mK+JfMd1XgMBmdrAJ0Gwdye9BktenHQ 5Fng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=33k6fG7CN8caIQqp5re35EClf3g84aCx79/bsayWk6Y=; fh=/Aqzg51eNQmi2L7RUOUlPUcy5/p17/bUqT4vjvE+pNc=; b=vWD2g98rBuedfy0IZVl+k5lMUI1LIBm08F+dpWNlAtSUNdxVlRnGBKWXZOx3ue4m8c Sim+gq/Zua2dh8XcjuWH2AdCI1X8NgJ/LbRM8IPMB18kBM9MX38eNkmZ84hoVZ+bR3cj w/TXDQYI12FL0yIsLofA8Mwcr7ekVFVly/bTvnClcrPo8S4DDXig9vjJBllD9RqkW5OL sS0Q5z4NzS8/Rh/YivOFRXewFjt5eDSptsIZykhSuiUvW72IES0Beu+0Qrow8m5/VYur EMJH7mbiB7XC7eei+zjxrXjm7m0QJBnGw1VDT0wEZTGVNcYJ2zqMewC44ZgSAHol3xuH TJxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=m4OwfOd0; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a7-20020a63d407000000b00565360714f0si10541040pgh.902.2023.11.27.12.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 12:42:09 -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=@ibm.com header.s=pp1 header.b=m4OwfOd0; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 12F08824696E; Mon, 27 Nov 2023 12:42:07 -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 S233327AbjK0Ulv (ORCPT + 99 others); Mon, 27 Nov 2023 15:41:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbjK0Ult (ORCPT ); Mon, 27 Nov 2023 15:41:49 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EEDCD60; Mon, 27 Nov 2023 12:41:55 -0800 (PST) Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ARJl5x0011147; Mon, 27 Nov 2023 20:41:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=33k6fG7CN8caIQqp5re35EClf3g84aCx79/bsayWk6Y=; b=m4OwfOd0wlHGrvPq9yqK8s+YZQvbOCvSfMDn0N/8g4xpZxWQnwhHRoUVum1q+42B2QiU 0j9NsyY9eneILDBYEKakLHz/T868hngsVDQRIiIPr4TPG82qAOBwHZA75FZ31OBCKZqB N5mInXNWjDWwAGQcBcr71hHQvE2J2MQPN3LjIu1bk/Um1GAKC+HyOPG5GvM9GjVzySmD Yo+sdxRnwplYdMDqFeu/2co1bs1RNCyJgsLH+4/meX2w5OAfDOVj8ME7IutcIw+UHumw z6VUSPQ+THQxrSdf80UU+whrWSs2HAHG8UyU1R+ZURcXAd9rApivUdGQ7n365Q9oepSD Og== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3un0xetax9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Nov 2023 20:41:48 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3ARJofA7021579; Mon, 27 Nov 2023 20:41:48 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3un0xetawx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Nov 2023 20:41:48 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3ARJcpLI001736; Mon, 27 Nov 2023 20:41:47 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ukwy1jqr3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Nov 2023 20:41:47 +0000 Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3ARKfkle16450228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Nov 2023 20:41:47 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9C2EE58054; Mon, 27 Nov 2023 20:41:46 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9AC4958045; Mon, 27 Nov 2023 20:41:45 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 27 Nov 2023 20:41:45 +0000 (GMT) Message-ID: Date: Mon, 27 Nov 2023 15:41:45 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 4/8] tpm: Update struct tpm_buf documentation comments Content-Language: en-US To: Jarkko Sakkinen , linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, James Bottomley , William Roberts , David Howells , Jason Gunthorpe , Mimi Zohar , Mario Limonciello , Jerry Snitselaar References: <20231124020237.27116-1-jarkko@kernel.org> <20231124020237.27116-5-jarkko@kernel.org> From: Stefan Berger In-Reply-To: <20231124020237.27116-5-jarkko@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: aiuvupNQQzQ38zcO7U2FAyRSc5dYlS83 X-Proofpoint-GUID: 0JPz4-f2rM993IWewFRLLRQXDmE1qw0C X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-27_19,2023-11-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=999 suspectscore=0 impostorscore=0 spamscore=0 bulkscore=0 priorityscore=1501 adultscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311270143 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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]); Mon, 27 Nov 2023 12:42:07 -0800 (PST) On 11/23/23 21:02, Jarkko Sakkinen wrote: > 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: */ was exceeded > TPM_BUF_OVERFLOW = BIT(0), > }; > > +/* > + * A string buffer type for constructing TPM commands. > + */ > struct tpm_buf { > unsigned int flags; > u8 *data; Reviewed-by: Stefan Berger