Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933048AbcKYToc (ORCPT ); Fri, 25 Nov 2016 14:44:32 -0500 Received: from quartz.orcorp.ca ([184.70.90.242]:45426 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932406AbcKYToY (ORCPT ); Fri, 25 Nov 2016 14:44:24 -0500 Date: Fri, 25 Nov 2016 12:43:33 -0700 From: Jason Gunthorpe To: Jarkko Sakkinen Cc: Nayna Jain , tpmdd-devel@lists.sourceforge.net, peterhuewe@gmx.de, tpmdd@selhorst.net, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/3] tpm: move event log init functions to tpm_eventlog_init.c Message-ID: <20161125194333.GH16504@obsidianresearch.com> References: <1479922057-8752-1-git-send-email-nayna@linux.vnet.ibm.com> <1479922057-8752-2-git-send-email-nayna@linux.vnet.ibm.com> <20161123193830.GB13927@obsidianresearch.com> <20161124210105.ykmbednlmae52tla@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161124210105.ykmbednlmae52tla@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.151 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 813 Lines: 20 On Thu, Nov 24, 2016 at 11:01:05PM +0200, Jarkko Sakkinen wrote: > On Wed, Nov 23, 2016 at 12:38:30PM -0700, Jason Gunthorpe wrote: > > On Wed, Nov 23, 2016 at 12:27:35PM -0500, Nayna Jain wrote: > > > The device driver code for the event log has the init functions and > > > TPM 1.2 parsing logic both defined in same file(tpm_eventlog.c). > > > > > > Since the initialization functions are common with the TPM 2.0 event > > > log support, this patch splits tpm_eventlog.c to have only TPM 1.2 > > > event log parsing logic and moves the init functions into > > > tpm_eventlog_init.c. > > > > I think I'd rather see a tpm_eventlog1.c/tpm_eventlog2.c than this > > _init thing.. > > I would rather see tpm1-eventlog.c and tpm2-eventlog.c as we already > have tpm2-cmd.c for the sake of consistency. +1 Jason