From patchwork Fri May 4 05:59:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 134945 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp437071lji; Thu, 3 May 2018 23:01:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrPrdPyEll45bZSt+3ei7eQxVFffpfw1kKxcUmm/bSBxffMnsvlaucSj9xoNUY+IR/b7Ik8 X-Received: by 2002:a63:9854:: with SMTP id l20-v6mr20907189pgo.16.1525413690759; Thu, 03 May 2018 23:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525413690; cv=none; d=google.com; s=arc-20160816; b=OHFsSricEhXmVQCSri6aq0d0V+fNGbSetCcLR2fKYjsx8ijDfk1MDmr/m9v7lfg1LM 4sKpT1G1xVeSN8U1wVwE3q1wAUf94JFYXnmFpM9r9dTp/A5Y0ru07PmjUsDx54s2NSuO FTeKHrFUHcLfyrMECIe0u15IMVjPd2O5x1ICPTNLsajUQsvZFDjCsICr2DLAVdaDeQmI 5wb1nZgUQhdO3yt7b4H9aL16GMQgGh6nIgZ0P0MwpaMOmSCi2eeJOuYmr0p0FtbocAz6 K0MZ0FnbKRsM2qnz29oLy/feVj8K4U5Qc6oXKZW4kWp6OtN1gTpmbfCFlrbZAx9rc4LT ubwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ZY6R1HVgqPE8nGVVuw9m0sfGbX4YD0n5QENH3/kQqNw=; b=hVfBOgfmT1H7PVSc/7zqFug4LlZjTKBCNh0aoPmIGii4q2+OmkFmr0m8lJFHpgqg69 RcvfheDYf5spRAQb6p7k2/BL+/IEjwnBmHKVMO/UtsPvimkuhv24eVQWWrAZ2N2IOrz1 u0vMiGEELfUEoicZKB/nhu3KfDWNZpFxZ2JI3bn87EPTjlYgO18bStK/Q9xQpWQKetCP L7hDpDrqouCTQ2cIpPMQ03ml//vnYL3/F4LtNP3Wai7WRWT4KKSPjfJW6UGKipk6o0rz dBwh7DvtwwKV4/vUDXaxo6gAbG4jLPkcK1nLvQNNleb2PxYhyO+CoRgvkq1CVTh9wQCQ Qwog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W4FQ/wH+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si2812110pfh.278.2018.05.03.23.01.30; Thu, 03 May 2018 23:01:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W4FQ/wH+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751737AbeEDGB1 (ORCPT + 29 others); Fri, 4 May 2018 02:01:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53514 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751593AbeEDGBY (ORCPT ); Fri, 4 May 2018 02:01:24 -0400 Received: by mail-wm0-f66.google.com with SMTP id a67so2189077wmf.3 for ; Thu, 03 May 2018 23:01:23 -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; bh=ZY6R1HVgqPE8nGVVuw9m0sfGbX4YD0n5QENH3/kQqNw=; b=W4FQ/wH+0p5aJ1wKKja1E5SnzRnVa0k7YCzVGOnX4UuMmxJWLYkOJiL2gwjaj9CzDD n6KIujdCi4BagtydTJPr827cKiyQTWbf2tWWq3Z9OcmWxK9ByYtI3Wn7k8DmMmBIRPRD CWedoqgGEPCpV67HyCM52KqYJeO61DRaT1dCQ= 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; bh=ZY6R1HVgqPE8nGVVuw9m0sfGbX4YD0n5QENH3/kQqNw=; b=c9SN2Oaho+anw8pn8vWj08+Snei73jsCh9yPWYOh8avvnvaBt5tadTZWDZm4q1raLa JGzf9SDz/YMY5zLWM2M/2+j44KuNoLThjur33Mg4Uf5bEzUKIIl0yMzdrJnficnvj7x3 1NUa72wHBxZsfnxvChwtmlJq/p37VAQrsCdkBSNoHnd23JiNbKTzJkliNlPbpYEAjXLj NeHs0LxmXfM6FOsyCo3NXYOST5Lmlo8X7J9PudC6szRe61xZU3H22P/D0iS6VZDvMvB4 YLbYIOMUmSkOsgvUrpg66DnnU2QxPu1vJaJStX6qbsTytibkuIszx1JDLBZ4oehcXL/O LoiA== X-Gm-Message-State: ALQs6tDuDgyxZ51ECsUnuxFVGQTZnPL4lOIun/MNAb0VjtWE3K4VdQga BRi67EHsvel3NXGIyVmoT04Up8X3oYE= X-Received: by 10.28.74.13 with SMTP id x13mr13542467wma.150.1525413682810; Thu, 03 May 2018 23:01:22 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id i30-v6sm32411863wra.38.2018.05.03.23.01.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 23:01:22 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Wei Yongjun , Ard Biesheuvel , linux-kernel@vger.kernel.org Subject: [PATCH 11/17] efi/libstub/tpm: Make function efi_retrieve_tpm2_eventlog_1_2() static Date: Fri, 4 May 2018 07:59:57 +0200 Message-Id: <20180504060003.19618-12-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180504060003.19618-1-ard.biesheuvel@linaro.org> References: <20180504060003.19618-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Yongjun Fixes the following sparse warning: drivers/firmware/efi/libstub/tpm.c:62:6: warning: symbol 'efi_retrieve_tpm2_eventlog_1_2' was not declared. Should it be static? Signed-off-by: Wei Yongjun Reviewed-by: Jarkko Sakkinen Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/libstub/tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 diff --git a/drivers/firmware/efi/libstub/tpm.c b/drivers/firmware/efi/libstub/tpm.c index 9d08cea3f1b0..caa37a6dd9d4 100644 --- a/drivers/firmware/efi/libstub/tpm.c +++ b/drivers/firmware/efi/libstub/tpm.c @@ -59,7 +59,7 @@ void efi_enable_reset_attack_mitigation(efi_system_table_t *sys_table_arg) #endif -void efi_retrieve_tpm2_eventlog_1_2(efi_system_table_t *sys_table_arg) +static void efi_retrieve_tpm2_eventlog_1_2(efi_system_table_t *sys_table_arg) { efi_guid_t tcg2_guid = EFI_TCG2_PROTOCOL_GUID; efi_guid_t linux_eventlog_guid = LINUX_EFI_TPM_EVENT_LOG_GUID;