Received: by 10.192.165.156 with SMTP id m28csp693558imm; Wed, 11 Apr 2018 05:58:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx49OfW5GOQdGfLo+7oqFcmQjXFrQn0CklzlaBFDYm8df0A6Slj0tbcXgFW4+dSLaMaaYneV6 X-Received: by 10.98.204.12 with SMTP id a12mr3983950pfg.3.1523451529832; Wed, 11 Apr 2018 05:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523451529; cv=none; d=google.com; s=arc-20160816; b=xvXS/5h1eQLljOaBn40Ra6LMuLbJ9bkWqC/rfX4uV9FlkQ7e+fLUpmc9QB1b9FB++8 QKuun0tgAhWMQuDwDHU/Nvid67jKQEXhNfH7UIt2sWdHdAYT3z5qoHg36JIypaqivLwx eXKWE3u5vyc8F7XGTy57dyr6saNeoQ2g4PDxhKbz0io9WCI2v+BxHslaf3EIrIXcj/DV Kg0lTMpA/sxOQrWi5lkQIEM6s7eGZzQM7lT+9nbnX0T2HbGKxIV56Bt2p4Tk4oSYrv13 gcvQynkwQ4dTD1LakjaSwvZ8XQIMddr9as1jepeQCtvMIbQR/4z6VKReuOYfZkflO4dw /a1w== 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:message-id:date :mime-version:dkim-signature:arc-authentication-results; bh=ITzeYP8cmjwkJAXdsmJG2k1MqbVvLp1X+q71wA5jLHA=; b=0gFmXVlSxoYePneIWd7BA+z5KRxAy6l+azJ2s7isfKnitkICEK73cF3GdZKnYlr/A2 dLmG1BvXMCWdiTesGqgOqLbxM+/+WKa0+L7ZjdShUb5k2vLd9o9RYTcrnOBZiMt1C2B4 /ZA805q0khpwP8H54fi7Ar67P5b3A8BLkybkLa26VrFFd1dES9UJEu/0pQockiRppbfZ h0Jzub/wpLqRYmphLAFeXx44lzkOvgkh5wD6A3AMQVoFVClDC6DCiR++ZXM9k0AzBDuO nNy5FSkKP01lE+hOK1cH0pklMDg3fyWStoqZ+aAc1rgFKKJ+xRSGDxrOx2LPP1mt9Ukq heig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Sm3+c/d/; 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 n2si743035pgc.529.2018.04.11.05.58.11; Wed, 11 Apr 2018 05:58:49 -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=Sm3+c/d/; 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 S1753111AbeDKMzi (ORCPT + 99 others); Wed, 11 Apr 2018 08:55:38 -0400 Received: from mail-vk0-f74.google.com ([209.85.213.74]:56450 "EHLO mail-vk0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbeDKMze (ORCPT ); Wed, 11 Apr 2018 08:55:34 -0400 Received: by mail-vk0-f74.google.com with SMTP id p10so1005441vki.23 for ; Wed, 11 Apr 2018 05:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:message-id:subject:from:to:cc; bh=ITzeYP8cmjwkJAXdsmJG2k1MqbVvLp1X+q71wA5jLHA=; b=Sm3+c/d/N0Y7N2J8rG6l5RGJPSVSfThg4H57QgCAxPGO2wRJVp2rgvtRBRav1LyRGf JG7fWLtjhLaylSObn2McPlen09JMoofrmuttVNgfI37JfAjPAxhChFqJTh2DA6Jn8fgP TiB9vnbmcVP5WUkQ8HO7mVwtscGy5kfuyRChuYm2Wi2NLyVREsUyOlwGAzOMDGjs0672 yekVR7Tues6n746wP5XOO7LnNj/MB6/IRn3tDpOhdWkKC6Ho3pGZ7lN7deich1wcepD4 SAe+3/+HbRvEhgjBbpsAPoRSbt9lBtvwLtt79mVqZ7BvJ4+wSpScTJ6JCJiaOZrZvpT9 bm4Q== 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:message-id:subject:from:to:cc; bh=ITzeYP8cmjwkJAXdsmJG2k1MqbVvLp1X+q71wA5jLHA=; b=kVZCqbnT52pd9zCatBSdG9X3DnaSgEvCCaVyYpn2nLM7l+9aX20VAaPkaSSc1G7UMY ytgw/5cgqxpiAqnGYtRtfvXpVQwIyh5ScpTSND2nx2mIykmhD2fsoTpCHFfXbk1wPXs6 Hb2Vh78BWCrnpN5m63xjMtlH+kXlKQZNVTJpIXYhZOK6ufcNJZiYuVVIkwDzhufb4WXv Frcz8E4s++G5kBHKrmJyjYVG+M2ZzFTu+FWZoeoctLOptIJghBtU7XhW+6KFrzbulPyi K9mKnMcPreX/5BWAqywn+/i7O10aPJiUU0NaEHY9vifAECVdmvnWkM8mAav6hhpUJn41 vleQ== X-Gm-Message-State: ALQs6tDGAC/6EEvu8S+xL/q1/EbGH5vhJ18FjNuH9vC8OLCKIxhJes62 kTGzDo9Y8d4ieq6jgbXla8PJrLI8xw== MIME-Version: 1.0 X-Received: by 10.176.97.152 with SMTP id h24mr1964805uan.98.1523451333457; Wed, 11 Apr 2018 05:55:33 -0700 (PDT) Date: Wed, 11 Apr 2018 14:54:58 +0200 Message-Id: <20180411125501.188477-1-tweek@google.com> X-Mailer: git-send-email 2.17.0.484.g0c8726318c-goog Subject: [PATCH 0/3] Refactor TPM event log code 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 This patchset implements the proposal from Jarkko Sakkinen [1]. I have included the feedback from Nayna Jain about the function naming. [1] https://lkml.kernel.org/r/20171024222148.gwnkj5vqsyj43qer@linux.intel.com Thiebaud Weksteen (3): tpm: Move eventlog files to a subdirectory tpm: Move shared eventlog functions to common.c tpm: Move eventlog declarations to its own header drivers/char/tpm/Makefile | 10 +- .../{tpm_eventlog_acpi.c => eventlog/acpi.c} | 2 +- drivers/char/tpm/eventlog/common.c | 196 +++++++++++++++++ drivers/char/tpm/eventlog/common.h | 35 +++ .../{tpm_eventlog_efi.c => eventlog/efi.c} | 2 +- .../tpm/{tpm_eventlog_of.c => eventlog/of.c} | 2 +- .../tpm/{tpm1_eventlog.c => eventlog/tpm1.c} | 200 ++---------------- .../tpm/{tpm2_eventlog.c => eventlog/tpm2.c} | 3 +- drivers/char/tpm/tpm.h | 27 --- 9 files changed, 258 insertions(+), 219 deletions(-) rename drivers/char/tpm/{tpm_eventlog_acpi.c => eventlog/acpi.c} (99%) create mode 100644 drivers/char/tpm/eventlog/common.c create mode 100644 drivers/char/tpm/eventlog/common.h 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} (58%) rename drivers/char/tpm/{tpm2_eventlog.c => eventlog/tpm2.c} (99%) -- 2.17.0.484.g0c8726318c-goog