From patchwork Mon Apr 29 20:27:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Bottomley X-Patchwork-Id: 13647675 Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [96.44.175.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CF40142E6A; Mon, 29 Apr 2024 20:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=96.44.175.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714422539; cv=none; b=Fay9X3RyEZ9cTlXgiN+d0wSUZdaObFnKCEFJOvFGXeI7+Z6/xgiEyO1qjlSsVuXl2hwhkcVxOt0V07IL0B9fcBWYTz1wKO7sFGNEDFTULes3MHnX3uA8PPOm0w79jhl9aJ55Ghsc5Zs/VwjfUR/h1CsndSB+WPhQOk2yv16rtgI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714422539; c=relaxed/simple; bh=I6Gvq5Hf1pNtrzsESMyjfVDjeg4UkqOIhC0QdXTOBag=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=A3MWwIDHKPKIIiknFTUkJ0cZjxlaXIL+4+AAuFvLnnx1l1duMY5Hxx3fVEQ64gHZwBB2LEy7H6MAScyz8XeoRzsMYSs9Q/T41qyj1CX2duIBIzk9hQdaRStqY+1DnAhEpc09VvABgHzl0t/XCwBbVaC1nO6fx6OA7PkFbZ2IR3I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com; spf=pass smtp.mailfrom=HansenPartnership.com; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b=CGKULgtG; arc=none smtp.client-ip=96.44.175.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=HansenPartnership.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b="CGKULgtG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1714422537; bh=I6Gvq5Hf1pNtrzsESMyjfVDjeg4UkqOIhC0QdXTOBag=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References:From; b=CGKULgtGgUj6zqKMUiE7bJzfk2cy+QOeNeUMv7YWNuqKztx+j3AarZLaITzu3dd4s V4XTYnJ7P5LoMzvbVrjkniS/ohb7rY8gK80N86OgmX9SZpB0RdM080IYN9nXjNYyge F8P7sl+uknMrjltrjYUK0+60Xq+iD7DsJ5+g7V7w= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id C1F8F1281D87; Mon, 29 Apr 2024 16:28:57 -0400 (EDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavis, port 10024) with ESMTP id 68gaViiR2t3Z; Mon, 29 Apr 2024 16:28:57 -0400 (EDT) Received: from lingrow.int.hansenpartnership.com (unknown [153.66.160.227]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 263B112819F3; Mon, 29 Apr 2024 16:28:57 -0400 (EDT) From: James Bottomley To: linux-integrity@vger.kernel.org Cc: Jarkko Sakkinen , keyrings@vger.kernel.org, Ard Biesheuvel Subject: [PATCH v8 04/22] tpm: Update struct tpm_buf documentation comments Date: Mon, 29 Apr 2024 16:27:53 -0400 Message-Id: <20240429202811.13643-5-James.Bottomley@HansenPartnership.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240429202811.13643-1-James.Bottomley@HansenPartnership.com> References: <20240429202811.13643-1-James.Bottomley@HansenPartnership.com> Precedence: bulk X-Mailing-List: keyrings@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Jarkko Sakkinen Remove deprecated portions and document enum values. Signed-off-by: Jarkko Sakkinen Signed-off-by: James Bottomley --- 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;