Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp125121imj; Wed, 13 Feb 2019 05:49:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IZXpGztF7tGnjYbEi7TzRm/MaiKqUcO4kss7qyNqoe61NdCBHKI0364cen0Gc7O1rVONhoe X-Received: by 2002:a63:535c:: with SMTP id t28mr602913pgl.128.1550065771524; Wed, 13 Feb 2019 05:49:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550065771; cv=none; d=google.com; s=arc-20160816; b=lk47SyC1zzQkk4lngQ1ajV/jzHMAbGQCHe6DRod13T3XA8kdY2N6rhD8Jpf3nuLaXX WxMJLjirA5MUgb4minTvaf27Woefhc9qGdGs1oZxoFFcqFXgislB+6KRN4BN9i6wx88J 2qvX7/ooXoUvTjlfz91sS7ExHcLVhGvqRhWKTUnjyDiKV/QrqWoATzvfd/nFjpfp9hMh wg2FnNemCpQC5d5GDY5ggQYV6vg2F1jaHYng8UZyErbdNf1hiKqu9SQE9aSVJYb4g1wx mWEYgw/C3hWZOto+6sX39mqgYzCm7Q4usWrbWzlOMhI69WEinXMbKPa9FT3hBW/ZrWxl SoNQ== 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=egLHywpBXI7i+l5EFz1YwwucnZQNVtB4aB2tbUnyQTQ=; b=snMNfViZwREutV4Rdo+XTk3D0BVZ4kuKZjUGU+Cefr5by+TxCMo6NIHbDdp9wzIldw vt/NSFSi/youIfV8HxvMbMVYwksTd/NnqjTCQB3Mi4AMlquWEjzR5CWtonYSHgG9Nc1t MYdNwJsXRa0C8VJ9pyOr0bsUPAcYytyhXZWB6Llast25CSvCNHS9/ZWIQW5kg4dlFb+q v9bWqJNWFZiUqO6kb5gsNOLwxj3XPAi7DDa3XQAc9ZScOQL3L/fMuM2B//ybZIUv4AiB WYLOX/PNxmHUKypjVU37kvwmhHf2MSu87q4sDbAVcUvFvi0NQMU6LKjqGH9/EjTbTo/n P7Jg== 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 g6si14439208pgc.55.2019.02.13.05.49.14; Wed, 13 Feb 2019 05:49:31 -0800 (PST) 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 S2391761AbfBMLSP (ORCPT + 99 others); Wed, 13 Feb 2019 06:18:15 -0500 Received: from mga01.intel.com ([192.55.52.88]:35857 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728454AbfBMLSP (ORCPT ); Wed, 13 Feb 2019 06:18:15 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2019 03:18:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,365,1544515200"; d="scan'208";a="133948410" Received: from sorenthe-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.151]) by orsmga002.jf.intel.com with ESMTP; 13 Feb 2019 03:18:07 -0800 Date: Wed, 13 Feb 2019 13:18:06 +0200 From: Jarkko Sakkinen To: bsz@semihalf.com, matthewgarrett@google.com Cc: linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, peterhuewe@gmx.de, ard.biesheuvel@linaro.org, tweek@google.com, mingo@kernel.org, hdegoede@redhat.com, leif.lindholm@linaro.org, mw@semihalf.com Subject: Re: [PATCH 1/5] tpm: Copy calc_tpm2_event_size() to TPM library Message-ID: <20190213111806.GF7087@linux.intel.com> References: <20190211143052.3128-1-bsz@semihalf.com> <20190211143052.3128-2-bsz@semihalf.com> <20190213111443.GE7087@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190213111443.GE7087@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 01:14:43PM +0200, Jarkko Sakkinen wrote: > On Mon, Feb 11, 2019 at 03:30:48PM +0100, bsz@semihalf.com wrote: > > From: Bartosz Szczepanek > > > > Function to calculate event size in TPM 2.0 log will also be needed in EFI > > stub. Separate it to library to make it accessible out of TPM character > > driver. > > > > It will be removed from tpm2.c in subsequent commit. > > > > Signed-off-by: Bartosz Szczepanek > > Collides with Matthew's patch set, which has priority over this because > it was sent earlier. > > Matthew, what you think of this? Maybe could replace 1/4 with this in > your patch set? Somehow feels a bit cleaner approach. This commit is in any case broken. It leaves two versions of the function hanging to the code base. /Jarkko