Received: by 10.192.165.156 with SMTP id m28csp1772325imm; Thu, 12 Apr 2018 03:17:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+whREjgxTyV5Lz0UPKO536FEKxcngBTmINCKp2QUEhTARJHZwln+i9/0Bvx0Jge4ezo5Uy X-Received: by 2002:a17:902:549:: with SMTP id 67-v6mr368230plf.276.1523528277844; Thu, 12 Apr 2018 03:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523528277; cv=none; d=google.com; s=arc-20160816; b=tl/PLcxxO6nwzwgau93a5cTtmU1F4J0qL0IjcKeHjeMFMdAxUKP/D50m6+5fyqR2mq qyoDo4IOSabEWMosLyeA82HFDWxgcf1jDvU2K6fd6LDjrndoGVroMzwTx1tLsYDfZwry mCa6GUTBCwkX29zExvg5nLaklkiJD0MF3JlHULvc5CLmZ80IuDe9o0JC02XrrjJOJt4w j3kyOQzcfZQmj9ScGCWgjfWuupvzrGqVjuXXc+EcZ2GKAYnh9Pg+Gn8ByeSuZzTWBDzD PKbIAkeo6MF818M11rG5oOxf6S3G/Uzec8EQ+ttcORe7MFla3CkHfxLLlBAYPLd0SDk3 JrkA== 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=QbzJdC+5T+eAxpdv9hvSbyrKCrlTN5Y0fYNyH///sko=; b=HaD2Y6lmckCF8WFqeuWCpqj3Y7bMatwZAYGqyBI1ICpczKTIBmlh9qXmnPu1Rjuifu ISoCHcrtrsuZiMyNwbQLbVSHrvGaH4Ae7qyIRVOeC/CBXvYyhWEK9OiIw5uU9Voy8+We nAadiLBapx5Wkh5Ky1wH9GGUFu1OSYa0Te64a68rgp/DW4PJ9iw30dbPk5I12GB+prfL lDnELHDkbj56HmCFHXxku12AlGLtsD+6zFwyCQDKdJ+op/E89Zo4fLmpvYccEsKcU1iX mV7x/dcrwNXsiWrJjCtOWqtk37OKwi8XuZU+vhQbgjOrzyRc79oW7DFzpy+FIqYZpsJp ZA/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pzS876xr; 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 z79si2425111pfa.120.2018.04.12.03.17.21; Thu, 12 Apr 2018 03:17:57 -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=pzS876xr; 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 S1752878AbeDLKOX (ORCPT + 99 others); Thu, 12 Apr 2018 06:14:23 -0400 Received: from mail-ua0-f201.google.com ([209.85.217.201]:33549 "EHLO mail-ua0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752761AbeDLKOS (ORCPT ); Thu, 12 Apr 2018 06:14:18 -0400 Received: by mail-ua0-f201.google.com with SMTP id w16so3279344uad.0 for ; Thu, 12 Apr 2018 03:14:18 -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=QbzJdC+5T+eAxpdv9hvSbyrKCrlTN5Y0fYNyH///sko=; b=pzS876xraiRg48LVj9YThC1WpLiD2jbky3O0VqRNCfKwKB9jcZmQRvDpq5KKZN4XS5 EL0aJrCuWGc0rQao54BnF5fTqzE3iVLSc/81W71b9PIYv6yP77FE7hUt/NtcAmphRvN5 1I9h6I4ClXCjikoMcw9hVcSZ5VntZKbpkCNGkI2iCBOsBIFmZKEFf1I80xypp2M04ndl IDBr+b7vTae5mQbSis05BXfEh4kDR4hx+QJ2BwE8SGxz4gGZUtDIp8ar7zD43jv8rsgP tJ3NM6STIyCwLU/EMSSTdS1yRHd+GlnvaHAONZG07LQak0tp6aW2kmrDcY3x76LfXZaM z/4g== 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=QbzJdC+5T+eAxpdv9hvSbyrKCrlTN5Y0fYNyH///sko=; b=rJN7HLX3da76gNi0D6YLpBy3zOgZgmF63uPl10XWi6qsy1X9lsvRVNBy+fddk2dmZA jNqYcz2GAP3CcF/hC05ZvQ/mVYxQ+eUEWiFp9ZgmMIaW+P2IBPDa7DugK7xpDxJRk6q/ 2FgEGWhbKXXJUPFGS/kvcQOINB+6hA3Rrl30TWU+fJ50wStf0w6CskAUc7O2/65mJ534 KHDdBlmxRbHp5bWJal1T/KLiDGvXDVoBOQXnjkxUL6JPIN8o7F6GX5p5swMZnLP5+uA6 j9BYLdEodv1oeOJZlWBeRBDXznDLyHJlkmWWQw2VQoBRAyT7bz+3zwagLvBu5DoExmMI 32Gw== X-Gm-Message-State: ALQs6tCYHjwcupFAsqezwPuCKOj/gmvj7FIYR0FA6W1TSGPdkQDcfJtU wp8AOPo/GK04vAjpfTKbRQxYaE0LIA== MIME-Version: 1.0 X-Received: by 10.176.82.116 with SMTP id j49mr122782uaa.11.1523528057538; Thu, 12 Apr 2018 03:14:17 -0700 (PDT) Date: Thu, 12 Apr 2018 12:13:48 +0200 In-Reply-To: <20180412101350.210547-1-tweek@google.com> Message-Id: <20180412101350.210547-3-tweek@google.com> References: <20180412101350.210547-1-tweek@google.com> X-Mailer: git-send-email 2.17.0.484.g0c8726318c-goog Subject: [PATCH v2 2/4] 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 Suggested-by: Jarkko Sakkinen --- 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 d74568d58a66..d98c184d5c13 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