Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jYr7p-0000sR-2H for mharc-grub-devel@gnu.org; Wed, 13 May 2020 09:08:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYr7m-0000qn-9R for grub-devel@gnu.org; Wed, 13 May 2020 09:08:38 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:54525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYr7h-0005cT-53 for grub-devel@gnu.org; Wed, 13 May 2020 09:08:34 -0400 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R621e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e01419; MF=tianjia.zhang@linux.alibaba.com; NM=1; PH=DS; RN=2; SR=0; TI=SMTPD_---0TyRaRuo_1589375300; Received: from 30.27.118.56(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0TyRaRuo_1589375300) by smtp.aliyun-inc.com(127.0.0.1); Wed, 13 May 2020 21:08:20 +0800 Subject: Re: [PATCH] tpm: Remove redundant function grub_tpm_measure To: Daniel Kiper Cc: grub-devel@gnu.org References: <20200513085353.50251-1-tianjia.zhang@linux.alibaba.com> <20200513124517.s57l36ajsn3iplua@tomti.i.net-space.pl> From: Tianjia Zhang Message-ID: <21b1e5fb-e611-21a9-dec1-2794e0662ad8@linux.alibaba.com> Date: Wed, 13 May 2020 21:08:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200513124517.s57l36ajsn3iplua@tomti.i.net-space.pl> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=115.124.30.56; envelope-from=tianjia.zhang@linux.alibaba.com; helo=out30-56.freemail.mail.aliyun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 09:08:26 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -98 X-Spam_score: -9.9 X-Spam_bar: --------- X-Spam_report: (-9.9 / 5.0 requ) BAYES_00=-1.9, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_SPF_WL=-7.5 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2020 13:08:38 -0000 On 2020/5/13 20:45, Daniel Kiper wrote: > On Wed, May 13, 2020 at 04:53:53PM +0800, Tianjia Zhang wrote: >> The grub_tpm_measure() is only used by tpm.c, and this function >> is the simple wrapper of grub_tpm_event_log(). So remove it and >> keep the code cleaner. >> >> Signed-off-by: Tianjia Zhang > > I would prefer if you drop existing grub_tpm_measure() and rename > grub_tpm_log_event() to grub_tpm_measure(). > > Daniel > Yes, this is a good idea, I will make another v2 patch. Thanks and best, Tianjia