Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757351AbcKXQuq (ORCPT ); Thu, 24 Nov 2016 11:50:46 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55459 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756461AbcKXQun (ORCPT ); Thu, 24 Nov 2016 11:50:43 -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> <58369E3F.40509@linux.vnet.ibm.com> <20161124164331.GA4930@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 22:20:14 +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: <20161124164331.GA4930@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: 16112416-0012-0000-0000-0000113B7DFD X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006134; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000192; SDB=6.00784900; UDB=6.00379221; IPR=6.00562509; 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.00013430; XFM=3.00000011; UTC=2016-11-24 16:50:41 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112416-0013-0000-0000-000047761230 Message-Id: <58371A46.3090400@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-1611240294 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 908 Lines: 31 On 11/24/2016 10:13 PM, Jason Gunthorpe wrote: > On Thu, Nov 24, 2016 at 01:31:03PM +0530, Nayna wrote: > >>>> 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? > > Leave them in tpm_eventlog.c .. Sure. I am fine with that. I just feel that it bit of mixed up the scope of tpm_eventlog.c file, where it now also refers to TPM2, but have corresponding seq functions in separate file. Thanks & Regards, - Nayna > > Jason >