Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp716432imm; Mon, 1 Oct 2018 17:52:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV63kArUfLGhzuHfHI+lEx/+YfWogLQS27MTifn342zEsPEjGd0RzBFlCYRTUMmpGwN7xisZL X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr14337482pls.233.1538441568885; Mon, 01 Oct 2018 17:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538441568; cv=none; d=google.com; s=arc-20160816; b=Krj+/yuj2ClDDuFStROHxXKBkI0zRYF+g5Q2+OPweW1R0BgarrYG8fuMrXFKI9X2qm p9qfu5dYrHQYUVNLzNlIMFY+e4mMFsmzktdMvTpR5JUIIMiU8LdZYbnW289A56ELFlYJ YqiQ17cB7j6+PE8SfB6nwfUXvyD7N9CZupJ3j1OOqryrvLexOt0+AJbQkTcMDYqiMkHD rlPNmDShEr0IiwutSWXsH6YJ6R/zqUE2+aijS8bOepLD2zTUcNcJ9EUprMiBtfImr0If 9IX0LPp08jhsVSjBMyvWswi5UkRbg737Mf62Oc6NyZcdFlQ4589nbv+zxdiFUTvqYba5 pZ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ul+0AA6brX+PwBromg4A9M5x+8IOeD4iUKVDUVSq4+E=; b=iGt+rb1MmnCMaBCecCu1Teg+xJy0Ps2jF96EcPt1qQb8CuaCKJfFlowj5raAXLNAXb +8MlPHkPe6m8Cnr2VCMANIQLpryISrDJSS4xWqUcHa4yDQ7mfeNnVPUtXiPT/GSJZV+L rGPr6WIREJirFs87GiJwccFApvAF+aV+8+P6F6KYfZ3EGw0o4Iqt/PG3deGDYOI+w64t y2yt4Y/WXitzmyvLHTVbO0HCm6A6LpFxLXhReM8TZN3+IGkkb0iWWzsP7t1SBxss1Ewr Lxu1zhZRa1ZNPNM+k9hSJWgNS45FeSRRldg0Fffc4+cGaFGSCX3pl4WicqEgN1KBmreZ nyGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15-v6si13305374pgg.422.2018.10.01.17.52.33; Mon, 01 Oct 2018 17:52:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbeJBHc5 (ORCPT + 99 others); Tue, 2 Oct 2018 03:32:57 -0400 Received: from mga12.intel.com ([192.55.52.136]:31330 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeJBHc5 (ORCPT ); Tue, 2 Oct 2018 03:32:57 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2018 17:52:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,329,1534834800"; d="scan'208";a="95620305" Received: from hubermic-mobl.ger.corp.intel.com (HELO localhost) ([10.252.54.31]) by orsmga001.jf.intel.com with ESMTP; 01 Oct 2018 17:52:09 -0700 Date: Tue, 2 Oct 2018 03:52:08 +0300 From: Jarkko Sakkinen To: Tomas Winkler Cc: Jason Gunthorpe , Nayna Jain , Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c Message-ID: <20181002005208.GH23753@linux.intel.com> References: <20180928223035.14471-1-tomas.winkler@intel.com> <20180928223035.14471-13-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180928223035.14471-13-tomas.winkler@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 29, 2018 at 01:30:26AM +0300, Tomas Winkler wrote: > Add tpm2_pcr_extend() function to tpm2-cmd.c with signature required > by tpm-interface.c. It wraps the original open code > implementation. The original original tpm2_pcr_extend() function > is renamed to __tpm2_pcr_extend() and made static, it is called > only from new tpm2_pcr_extend(). > > Fix warnings in __tpm2_pcr_extend() > tpm2-cmd.c:251:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] > tpm2-cmd.c:252:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] > > Signed-off-by: Tomas Winkler We do not want the signature change, especially because as we are working on getting Roberto's changes in and also because it has absolutely a zero gain. Who cares if those functions take different parameters? I don't. /Jarkko