Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp749921rdh; Thu, 23 Nov 2023 18:03:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IF38E2x95T4RVY6MNHP07kSO+9nbs4hJ6JBdEnSOq+1+4C0U7wMwsehxjlfwTMdyGlA36cU X-Received: by 2002:a17:90b:384b:b0:280:f4a:86b4 with SMTP id nl11-20020a17090b384b00b002800f4a86b4mr1340019pjb.17.1700791398777; Thu, 23 Nov 2023 18:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700791398; cv=none; d=google.com; s=arc-20160816; b=XIr14EwoLoq9cfZG/qmhhh5CaPeVLnjSCoBiJPLGfQEMSIsl9l+Gk0mCXoAPPfGJ2y ZresuSTeoVd5J07DvSh3BHPwOuDtl7bJ9vuuV8sF8VrFSpnGweEr26pVa7rMPw9BGkn8 4Oo3iQO4dYxopiv/JFH0XmAhrfeT38UP6Se1TJnmJ36VOI1F5ZS91pKAld06WBfwvfPI wBrbAu1bAorvzYduJbaekVVSctRuO7owyidGsgEPyAQDf/lPBPLr6C1jn82tppHZU1DU zQzsQz/pNfKrT77pofnuiw78Uy2ishKFj35mqMy4E7AFFw/FDdVx1jSNhCi32c0mz+Ag ylRg== 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=NyoaGixpIJH6lcxAZm56NV2LMbim6h/TK6lcbTmuYcI=; fh=RBX0EO7BCt4n4lnvPBYFN24o6jFly+IlKRm41n8yo0s=; b=CuB3Vyj3GW39W3KUOvAqKOpUhyoWgkBeESrMPnaYXQiH1v4N7h1VyGScvwy3aOK1jZ 8w85UauP5JstYfZ7fG+r2MgqXXmKWZU5UpcgAVjbrKrAk4pywoY51JIgQV2qvlaFZTxi Qz3lYqhO9xoqTWjxfNphYIATgUX2wmP7Y77Tp070PF322R+/yDqonlRhG/CVHuZpEpX3 jYsZxhY01stHs99ZYYPIPLEZSa1r8TbCkq96pFTQMVMT4NXpftRkeJt9GEg3DG0CKjAf WxJT45sGdm4F9UIi75sfesgyRYaIOxboKUxT7BSUTPuS2okM895NPBZI5qR9otvCBCww cuHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rFpJGdWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k2-20020a17090a910200b00280072b397csi2943043pjo.30.2023.11.23.18.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 18:03:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rFpJGdWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 6768E8366243; Thu, 23 Nov 2023 18:03:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbjKXCCk (ORCPT + 99 others); Thu, 23 Nov 2023 21:02:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbjKXCCj (ORCPT ); Thu, 23 Nov 2023 21:02:39 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E13D7E for ; Thu, 23 Nov 2023 18:02:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 670D7C433C8; Fri, 24 Nov 2023 02:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700791364; bh=drr8cXKrF5OD9PCoerAcJq+7HVp0o9GWJzjGqXuSa0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rFpJGdWUmKdA9n3xca5vSrGJX8BPR0hs+/8k/qGWeW2sK41n/GORNaCGPg8ZaOUhJ OMUYoBeouIM0XEp/J7GnOqjdB9kSa1eJieBxbdlHxEYbc731SYb0b6TpmiQzDqV6sv hA11DrVekKz8Ct9Wu+/AM4yRWzooFheBgmWeOu8CLTJNgjN9zWPeeBZZjv+qYkUHVT +DT1Wr1qYurobhyFC2TzClkmDPYs/Ay3Roqqf37P7HoGVx1DF59pNfOBWbQbE1ct5K sFKFjza0oln0Uh4JOw7dVJuWcT+ROmrEnNkY6zTpuVu3bZowwTld8wfPuzE0+MOVE9 sflXqRbKCeMnA== 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 1/8] tpm: Remove unused tpm_buf_tag() Date: Fri, 24 Nov 2023 04:02:30 +0200 Message-ID: <20231124020237.27116-2-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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 18:03:16 -0800 (PST) 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) -- 2.43.0