From patchwork Tue Nov 21 22:31:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Sakkinen X-Patchwork-Id: 13463709 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 012D95A10D for ; Tue, 21 Nov 2023 22:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HPyXwNgn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4429CC433C7; Tue, 21 Nov 2023 22:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700605901; bh=Y56AO+jdgKKv2wjrPycIECDNz6SB1qKX+7if35pK/Gw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HPyXwNgnS7zCF6NPrE/wIwQ55UVOJ0qF6KkWl1qTqcOf9PV1bPFpjhn5GQmTvNPwK ID2TjXgxEhkiSYmImRMOZ42tB3tsPxRCL2qix7iI9ihdMiHtqpQWvYq/dwceU2Fk6H n9ddxB+8B+ARG93ER8ByfbcDImsZaYu7mSLANI9xrZTGzUSqt9KFQObprNhqSE1r0P eUxmzPUJrzYIB2f5w+tC1tszr79TRdJo6tX7LlvKXFL48lB3Ez4wU1hTx5mKmRp3Tm LmpPoquslb2qkTj7ZQZZwZyoDH7oNzepnMYf8As3boK1L+QeexKJ3MIakFmy1/hQyr zRdE6BK7O9vsA== From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: Jarkko Sakkinen , James Bottomley , Julien Gomes , Mario Limonciello , Jerry Snitselaar Subject: [PATCH v5 1/8] tpm: Remove unused tpm_buf_tag() Date: Wed, 22 Nov 2023 00:31:13 +0200 Message-ID: <20231121223130.30824-2-jarkko@kernel.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231121223130.30824-1-jarkko@kernel.org> References: <20231121223130.30824-1-jarkko@kernel.org> Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The helper function has no call sites. Thus, remove it. Signed-off-by: Jarkko Sakkinen --- v1 [2023-11-21]: A new patch. --- include/linux/tpm.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/linux/tpm.h b/include/linux/tpm.h index 4ee9d13749ad..6588ca87cf93 100644 --- a/include/linux/tpm.h +++ b/include/linux/tpm.h @@ -358,13 +358,6 @@ static inline u32 tpm_buf_length(struct tpm_buf *buf) return be32_to_cpu(head->length); } -static inline u16 tpm_buf_tag(struct tpm_buf *buf) -{ - struct tpm_header *head = (struct tpm_header *)buf->data; - - return be16_to_cpu(head->tag); -} - static inline void tpm_buf_append(struct tpm_buf *buf, const unsigned char *new_data, unsigned int new_len)