Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB9DFC001B2 for ; Mon, 12 Dec 2022 03:16:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbiLLDQs (ORCPT ); Sun, 11 Dec 2022 22:16:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiLLDQr (ORCPT ); Sun, 11 Dec 2022 22:16:47 -0500 Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [IPv6:2607:fcd0:100:8a00::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77D466336; Sun, 11 Dec 2022 19:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1670815006; bh=BtVRd1FtJTUyfciKR9BvdNVB9YPPZcl6EszfMRXpmNg=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=mPexR1lxM4FsqNRmVtTPbRZ4uZShIakQEFu9Mtrae1UyCpaf6AgqgpafRktUA0bs3 IbBIrVrMwz7J7Bqlb6XKUg7rKjs+OcLIAiGFGaX0tef4loibn47M3WrA3PYyawxxOO r3J7x8YjBBtQmnUKplXQdzL77caEkDEBrkehw0h0= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 0EEB41280FBF; Sun, 11 Dec 2022 22:16:46 -0500 (EST) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ocz4WpDq3ua2; Sun, 11 Dec 2022 22:16:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1670815005; bh=BtVRd1FtJTUyfciKR9BvdNVB9YPPZcl6EszfMRXpmNg=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=dmZxNTgi0uagVSqzfjRRh/onb5nYHX4KeZ6vxUFw9ZBjyNZLkI/yhgP859dIKxHgf MPX6k+YXKcx7mTHO5MkJFrr69ex/VJiXWDYHIPZg2L5PS/sqhn9t97cQOXL13K7HiP MMIUZ5X9NoncKT6vXhXgRT6e+ef/XdOLujly/3iE= Received: from lingrow.int.hansenpartnership.com (unknown [IPv6:2601:5c4:4302:c21::c14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id D9492128064E; Sun, 11 Dec 2022 22:16:44 -0500 (EST) Message-ID: Subject: Re: [PATCH 01/11] tpm: move buffer handling from static inlines to real functions From: James Bottomley To: Jarkko Sakkinen Cc: linux-integrity@vger.kernel.org, Ard Biesheuvel , keyrings@vger.kernel.org Date: Sun, 11 Dec 2022 22:16:42 -0500 In-Reply-To: References: <20221209160611.30207-1-James.Bottomley@HansenPartnership.com> <20221209160611.30207-2-James.Bottomley@HansenPartnership.com> <704a88efc2a7cf5c2679af2ca37a682efd6ceaa2.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: keyrings@vger.kernel.org On Mon, 2022-12-12 at 00:52 +0000, Jarkko Sakkinen wrote: > On Sun, Dec 11, 2022 at 03:01:57PM -0500, James Bottomley wrote: > > On Sat, 2022-12-10 at 02:09 +0000, Jarkko Sakkinen wrote: > > > On Fri, Dec 09, 2022 at 11:06:01AM -0500, James Bottomley wrote: > > > > This separates out the old tpm_buf_... handling functions from > > > > static > > > > inlines in tpm.h and makes them their own tpm-buf.c file.  This > > > > is > > > > a > > > > precursor so we can add new functions for other TPM type > > > > handling > > > > > > > > Signed-off-by: James Bottomley > > > > > > > > > > I don't comprehend that explanation at all. > > > > > > Please, add a bit more detail why this precursory change is > > > required. > > > > It's the usual submitting-patches requirement of moving code first > > before modifying it.  Since it's the recommended way of doing > > things in our process docs, I'm not sure how much more explanation > > can be given. > > It doesn not contain any reasonable argument for not continue > using inline functions. In principle nothing prevents them being inlines in tpm.h. There's quite a lot of them, so it's growing unweildy and __tpm_buf_init can't be hidden in that scenario but it could, in theory, be done. James