From patchwork Thu May 20 12:13:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12270213 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33DF5C433ED for ; Thu, 20 May 2021 12:50:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17E6861163 for ; Thu, 20 May 2021 12:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243219AbhETMvu (ORCPT ); Thu, 20 May 2021 08:51:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233577AbhETMvL (ORCPT ); Thu, 20 May 2021 08:51:11 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46C21C06137D for ; Thu, 20 May 2021 05:14:04 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id d11so17399310wrw.8 for ; Thu, 20 May 2021 05:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=940Pm8CefdQzyyIg56xRkqD6T8o98OEZl2VZ5CfbfUg=; b=gsD4YvNGz6XEiS8m2K0f4bKq1QMIQRDXUhSl3sV8sFCEHSHo/Vqa4aqmflJzFfz7dB VRJ4K9DcbF+hkb08JKUH+rbVDcZamjjDFSjgXZ/v+3BAl8xb4WbRmaLJSps5pce0dEnS RuxwdEkiWfwm+aq24EO+8Sk2AKhpwUUfgQ0tNoogyN/G6W28VmfT4Ff5aWwg6tWWF/cq N3WdZdhAM6C52dFABJk16yJDMXcoeaVcnPMGIXX8Qe3A+p7Yl9rS9u6N1jkY8L4Qq5gK IvQzwPOwlUgYkcoCLxptgCPiQPXvOrL+3yKgAkEUCZw1bfgzRCMbyR23e19YGdjGAcWO 8l2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=940Pm8CefdQzyyIg56xRkqD6T8o98OEZl2VZ5CfbfUg=; b=bAdebFXsdrOl4XpaVmATHI5OAqDLRMlYfioecvJIxgARuoFxpI/4OsHQNYOIFLItWg ADNrVeO7pFwbmwkexM59zUQk85L6iJhjeLLfcLGgwFAMlaqPgLHVxbR+gUOQXFJmsdRt NYtzgwsV/ITH/9T3ibg1d9J1kJlrGEWvNfZGMY8PI79eL2e0hMiKEZJb7Yl480MkhJfc GBxpNaLPnmiutGqW/Y9Bvp3rfSSWLCp6rpuvh4mIUUXQYZStiY+Z/eIAaRFR+cb1kI8z bHxl21Kw91tnLIgs5bEVHeeDXWT49X7TqUsiPlZzrioJuc4t87A67+hOGcAnMAf5L3x0 PAOg== X-Gm-Message-State: AOAM5325rIVVE9I5oq1QZB7IjvThGikE37EcQvifqswJ42v7RqTx5j1R iemMtYKApUz2zQsxPc+z3GOkXjsa78lusw== X-Google-Smtp-Source: ABdhPJxZlfpA2q3fQh/gHectPuex1dWdbLtpJHYBH3TSDl/TuBOqqjGHREb245epFxVX90loTEAfFw== X-Received: by 2002:a5d:5249:: with SMTP id k9mr4008493wrc.301.1621512842936; Thu, 20 May 2021 05:14:02 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id 61sm3393704wrm.52.2021.05.20.05.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 05:14:02 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , van Doorn , Dave Safford , Reiner Sailer , Kylene Hall , linux-integrity@vger.kernel.org Subject: [PATCH 07/16] char: tpm: tpm1-cmd: Fix a couple of misnamed functions Date: Thu, 20 May 2021 13:13:38 +0100 Message-Id: <20210520121347.3467794-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520121347.3467794-1-lee.jones@linaro.org> References: <20210520121347.3467794-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/char/tpm/tpm1-cmd.c:325: warning: expecting prototype for tpm_startup(). Prototype was for tpm1_startup() instead drivers/char/tpm/tpm1-cmd.c:621: warning: expecting prototype for tpm_continue_selftest(). Prototype was for tpm1_continue_selftest() instead Cc: Peter Huewe Cc: Jarkko Sakkinen Cc: Jason Gunthorpe Cc: van Doorn Cc: Dave Safford Cc: Reiner Sailer Cc: Kylene Hall Cc: linux-integrity@vger.kernel.org Signed-off-by: Lee Jones Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/tpm1-cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm1-cmd.c b/drivers/char/tpm/tpm1-cmd.c index ca7158fa6e6cd..f7dc986fa4a0a 100644 --- a/drivers/char/tpm/tpm1-cmd.c +++ b/drivers/char/tpm/tpm1-cmd.c @@ -312,7 +312,7 @@ unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) #define TPM_ST_CLEAR 1 /** - * tpm_startup() - turn on the TPM + * tpm1_startup() - turn on the TPM * @chip: TPM chip to use * * Normally the firmware should start the TPM. This function is provided as a @@ -611,7 +611,7 @@ int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf) #define TPM_ORD_CONTINUE_SELFTEST 83 /** - * tpm_continue_selftest() - run TPM's selftest + * tpm1_continue_selftest() - run TPM's selftest * @chip: TPM chip to use * * Returns 0 on success, < 0 in case of fatal error or a value > 0 representing