Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757103AbcKXKWu (ORCPT ); Thu, 24 Nov 2016 05:22:50 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:52719 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757071AbcKXKWs (ORCPT ); Thu, 24 Nov 2016 05:22:48 -0500 Subject: Re: [PATCH v5 1/3] tpm: move event log init functions to tpm_eventlog_init.c To: Jason Gunthorpe 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> Cc: tpmdd-devel@lists.sourceforge.net, peterhuewe@gmx.de, tpmdd@selhorst.net, jarkko.sakkinen@linux.intel.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org From: Nayna Date: Thu, 24 Nov 2016 13:31:03 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20161123193830.GB13927@obsidianresearch.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112408-0024-0000-0000-0000151CCFC4 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006132; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000191; SDB=6.00784723; UDB=6.00379115; IPR=6.00562332; BA=6.00004908; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013424; XFM=3.00000011; UTC=2016-11-24 08:01:30 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112408-0025-0000-0000-00004668B832 Message-Id: <58369E3F.40509@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-24_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611240138 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 803 Lines: 27 On 11/24/2016 01:08 AM, 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.. Do you mean tpm_eventlog1.c for TPM 1.2 and tpm_eventlog2.c for TPM 2.0 event log specific parsing ? And if so, then which one should have the common functions for TPM 1.2 and TPM 2.0 ? Thanks & Regards, - Nayna > > Jason >