Received: by 10.192.165.156 with SMTP id m28csp698274imm; Wed, 11 Apr 2018 06:02:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx49y/vAAAp5f6uLXRLzFg5pfiXfGLCzBqqaSNNeV45Cs1GRn6X7KsshsvwEgl2PKYe9YnGBz X-Received: by 10.98.13.151 with SMTP id 23mr4020093pfn.120.1523451735124; Wed, 11 Apr 2018 06:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523451735; cv=none; d=google.com; s=arc-20160816; b=kls50GltODNgKxpht1SbcE0PDcpAB3wZGElWYD/B91YRCNLLeNWLRwNn1y+dpHyGAZ y/zAncXguL+NPUIU0ZSm3cxJN1ZOH0LlZ/1JR4zLOItUI0WsxM2CqdkHL54m4/4+w8Gd Utp4peDSOlbQ/rLqNNSnGmuzKAY+wMbmmHsWTENFNEJCpu/5DvJITX8hBcRpOD1967rA dfo6veQ9MGy/9y+y6pbcwi4F36K0IDs//pEKUodqUdPxk2HwVEYO532xCY93NsfotS8P Lm565zu6kH7NbR8AX5Xkpauc/3bgKVMPWB/WmfuA5EBpJFsOYmR8gbvuc1+oGRqcz0gI L9yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references:message-id :in-reply-to:date:mime-version:dkim-signature :arc-authentication-results; bh=AHVjHaqk1MtDPIQLve1qn9K9LmbAnjxv35FmyYV44Mg=; b=1BycJVokpellPzrcvwwna8eiz/AdJZfIFX6E3XHC608zbXM6iw34kG1wC94N58n3Fu WwE0ckAXiAixlRMDeeR9N+zl3wNQrXEUeL1sZOiU2MTJI8vrCrS1ApqaR0zzw4w1xATJ kb/IFamMaUhZO9QrlMMB1Nk6deN+1blRbralJ8v4QTRqdNcG2B201yiyFmIPM785bo5E 3ejCX1fVAkBpZJK9k3rHqSHr4AqXKMAz7oXRmSEoM3EjYyKnLsToiJ8KZzlvz3e3bHq/ rEcLVgDK9OhQhZD+TwFDuUbr0RYv0uyqG0TqfIweygdCrmaLji/2VCG5fH9aIRokxhwO CLtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kh9wnESY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si1081936pls.4.2018.04.11.06.01.35; Wed, 11 Apr 2018 06:02:15 -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=@google.com header.s=20161025 header.b=kh9wnESY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbeDKMzv (ORCPT + 99 others); Wed, 11 Apr 2018 08:55:51 -0400 Received: from mail-qt0-f202.google.com ([209.85.216.202]:46370 "EHLO mail-qt0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753268AbeDKMzp (ORCPT ); Wed, 11 Apr 2018 08:55:45 -0400 Received: by mail-qt0-f202.google.com with SMTP id n5so1204216qtl.13 for ; Wed, 11 Apr 2018 05:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:in-reply-to:message-id:references:subject:from:to :cc; bh=AHVjHaqk1MtDPIQLve1qn9K9LmbAnjxv35FmyYV44Mg=; b=kh9wnESYVwNba+IAdjINIuZRgwWNc8qnoVIV3MaTReUFcpQQzhsMRVzBMYVa07H0bS 4B/+cAmUqj29cm7+QXXKwyD472+rCB1rrv8PWlJHqmRyqMfqgagz5f52pKUO6+/mj2fv E+rU6N5WHrn0isP7QA1OwMINuebAKhME3z+RKkkZBgBBpLxdSRdiOL4YWYJaM+Dk26jL fUsbSfR+cRgQ3R0W7Cg31e7tLox4BogkIXi6LamLHluF7JrrEGgWQinE+Wmi077PzqDD ShmK2jQZi9OnkFiHP/k22xfHJkjgHO5gAH38AbwGeWQXj3+4nHXqc3CjGZfwpqBm8cWE 72gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id :references:subject:from:to:cc; bh=AHVjHaqk1MtDPIQLve1qn9K9LmbAnjxv35FmyYV44Mg=; b=GmelNtFQrq6GKDyTx2ZkUo2Zaw1xYPKDTF1HNUhFZLGKxQ5UZGbN8d2rjUo6YJQ3fP 4fhD3g1lkj2VPpZ5kVOYdIpBe4EqQaf3hQSS4jfKSbsnp6YcSyMXZp2uLAFxTF8a3J4t sOpkOM5WRRVGpzkyL/lyk1mzXiZSVwHDFqlC2pQuarg+n+xPO7q3cDhCSZjb7h+FEq3E /MqaWPJRZ39jnZECFL3xz0tal1/OWKkuxFs1JFu0XloDEUCMho2NFAHJduniEdJz0nNW 8NupjzF6CVI7ckmcPmilpdUyfSs6JdfkECdF28RJMcgqZidbbgJ0LJhsMhz8aJW3LGeV hfSw== X-Gm-Message-State: ALQs6tDSM7kG8SOpqPIcd7QnfUKIXm1xHjmONH/xxIsdpf2mUKH/Cr3h urD6XUXbUs3FxsxmvjM3IIh6P9Zh9A== MIME-Version: 1.0 X-Received: by 10.55.75.139 with SMTP id y133mr3014987qka.16.1523451344372; Wed, 11 Apr 2018 05:55:44 -0700 (PDT) Date: Wed, 11 Apr 2018 14:54:59 +0200 In-Reply-To: <20180411125501.188477-1-tweek@google.com> Message-Id: <20180411125501.188477-2-tweek@google.com> References: <20180411125501.188477-1-tweek@google.com> X-Mailer: git-send-email 2.17.0.484.g0c8726318c-goog Subject: [PATCH 1/3] tpm: Move eventlog files to a subdirectory From: Thiebaud Weksteen To: jarkko.sakkinen@linux.intel.com, nayna@linux.vnet.ibm.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, tweek@google.com Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Thiebaud Weksteen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Thiebaud Weksteen --- drivers/char/tpm/Makefile | 8 ++++---- drivers/char/tpm/{tpm_eventlog_acpi.c => eventlog/acpi.c} | 2 +- drivers/char/tpm/{tpm_eventlog_efi.c => eventlog/efi.c} | 2 +- drivers/char/tpm/{tpm_eventlog_of.c => eventlog/of.c} | 2 +- drivers/char/tpm/{tpm1_eventlog.c => eventlog/tpm1.c} | 2 +- drivers/char/tpm/{tpm2_eventlog.c => eventlog/tpm2.c} | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) rename drivers/char/tpm/{tpm_eventlog_acpi.c => eventlog/acpi.c} (99%) rename drivers/char/tpm/{tpm_eventlog_efi.c => eventlog/efi.c} (98%) rename drivers/char/tpm/{tpm_eventlog_of.c => eventlog/of.c} (99%) rename drivers/char/tpm/{tpm1_eventlog.c => eventlog/tpm1.c} (99%) rename drivers/char/tpm/{tpm2_eventlog.c => eventlog/tpm2.c} (99%) diff --git a/drivers/char/tpm/Makefile b/drivers/char/tpm/Makefile index acd758381c58..5dcf5bd35a3d 100644 --- a/drivers/char/tpm/Makefile +++ b/drivers/char/tpm/Makefile @@ -4,11 +4,11 @@ # obj-$(CONFIG_TCG_TPM) += tpm.o tpm-y := tpm-interface.o tpm-dev.o tpm-sysfs.o tpm-chip.o tpm2-cmd.o \ - tpm-dev-common.o tpmrm-dev.o tpm1_eventlog.o tpm2_eventlog.o \ + tpm-dev-common.o tpmrm-dev.o eventlog/tpm1.o eventlog/tpm2.o \ tpm2-space.o -tpm-$(CONFIG_ACPI) += tpm_ppi.o tpm_eventlog_acpi.o -tpm-$(CONFIG_EFI) += tpm_eventlog_efi.o -tpm-$(CONFIG_OF) += tpm_eventlog_of.o +tpm-$(CONFIG_ACPI) += tpm_ppi.o eventlog/acpi.o +tpm-$(CONFIG_EFI) += eventlog/efi.o +tpm-$(CONFIG_OF) += eventlog/of.o obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o obj-$(CONFIG_TCG_TIS) += tpm_tis.o obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o diff --git a/drivers/char/tpm/tpm_eventlog_acpi.c b/drivers/char/tpm/eventlog/acpi.c similarity index 99% rename from drivers/char/tpm/tpm_eventlog_acpi.c rename to drivers/char/tpm/eventlog/acpi.c index 66f19e93c216..8476be2e9526 100644 --- a/drivers/char/tpm/tpm_eventlog_acpi.c +++ b/drivers/char/tpm/eventlog/acpi.c @@ -27,7 +27,7 @@ #include #include -#include "tpm.h" +#include "../tpm.h" struct acpi_tcpa { struct acpi_table_header hdr; diff --git a/drivers/char/tpm/tpm_eventlog_efi.c b/drivers/char/tpm/eventlog/efi.c similarity index 98% rename from drivers/char/tpm/tpm_eventlog_efi.c rename to drivers/char/tpm/eventlog/efi.c index e3f9ffd341d2..e1593c5271a4 100644 --- a/drivers/char/tpm/tpm_eventlog_efi.c +++ b/drivers/char/tpm/eventlog/efi.c @@ -14,7 +14,7 @@ #include #include -#include "tpm.h" +#include "../tpm.h" /* read binary bios log from EFI configuration table */ int tpm_read_log_efi(struct tpm_chip *chip) diff --git a/drivers/char/tpm/tpm_eventlog_of.c b/drivers/char/tpm/eventlog/of.c similarity index 99% rename from drivers/char/tpm/tpm_eventlog_of.c rename to drivers/char/tpm/eventlog/of.c index 96fd5646f866..c38c37e41389 100644 --- a/drivers/char/tpm/tpm_eventlog_of.c +++ b/drivers/char/tpm/eventlog/of.c @@ -19,7 +19,7 @@ #include #include -#include "tpm.h" +#include "../tpm.h" int tpm_read_log_of(struct tpm_chip *chip) { diff --git a/drivers/char/tpm/tpm1_eventlog.c b/drivers/char/tpm/eventlog/tpm1.c similarity index 99% rename from drivers/char/tpm/tpm1_eventlog.c rename to drivers/char/tpm/eventlog/tpm1.c index add798bd69d0..d6aea3ca950e 100644 --- a/drivers/char/tpm/tpm1_eventlog.c +++ b/drivers/char/tpm/eventlog/tpm1.c @@ -28,7 +28,7 @@ #include #include -#include "tpm.h" +#include "../tpm.h" static const char* tcpa_event_type_strings[] = { diff --git a/drivers/char/tpm/tpm2_eventlog.c b/drivers/char/tpm/eventlog/tpm2.c similarity index 99% rename from drivers/char/tpm/tpm2_eventlog.c rename to drivers/char/tpm/eventlog/tpm2.c index 1ce4411292ba..f0723fa9ae14 100644 --- a/drivers/char/tpm/tpm2_eventlog.c +++ b/drivers/char/tpm/eventlog/tpm2.c @@ -23,7 +23,7 @@ #include #include -#include "tpm.h" +#include "../tpm.h" /* * calc_tpm2_event_size() - calculate the event size, where event -- 2.17.0.484.g0c8726318c-goog