From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com ([134.134.136.20]:64024 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732192AbeISVAt (ORCPT ); Wed, 19 Sep 2018 17:00:49 -0400 Date: Wed, 19 Sep 2018 18:22:19 +0300 From: Jarkko Sakkinen To: Tomas Winkler Cc: Jason Gunthorpe , Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 18/20] tpm: use u32 instead of int for pcr index Message-ID: <20180919152219.GK31076@linux.intel.com> References: <20180918093459.19165-1-tomas.winkler@intel.com> <20180918093459.19165-19-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180918093459.19165-19-tomas.winkler@intel.com> Sender: linux-integrity-owner@vger.kernel.org List-ID: On Tue, Sep 18, 2018 at 12:34:57PM +0300, Tomas Winkler wrote: > TPM pcr indices cannot be negative, also the tpm > commands accept u32 number as a pcr index. > > 1. Adjust the API to use u32 instead of int in all pcr related > functions. NAK. > 2. Rename tpm1_pcr_read_dev to tpm1_pcr_read() to match > the counterpart tpm2_pcr_read() I would accept this a separate commit (and it should be a separate). > 3. Remove redundant constants in tpm1_pcr_extend() function. > > Signed-off-by: Tomas Winkler /Jarkko