Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp144402imd; Fri, 26 Oct 2018 06:28:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5cK5NBNPnguDvdI+inJQMnX+omWRORotQyXrvzq/hKqvfXeDUcrLEJB4ghtxifkZ7fO+1k/ X-Received: by 2002:a62:8910:: with SMTP id v16-v6mr3726012pfd.106.1540560502100; Fri, 26 Oct 2018 06:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540560502; cv=none; d=google.com; s=arc-20160816; b=kCq8MnoiseUURJaQxcfEvz9Ih/6oNFQhAxpeLNkaWerpGvMzKOMzqJNmeaScj/pyKA RsKtDzt73iGNVt73JhipKiTKEWPf3z7I7ARve1mKtusgAFL9PR43A+FUhbr+T9yPBxo7 Wam1Hm8I1/thhArkk0cdG1eihpy0D3EWqAgUBxVYtfGhPcD7jFxpPAi/7M5wF4yGUWWX dFaSAmPFwK++Ctz+gkDgU+qrAAP5YdYo0MURHoOuURWZTgY8B+5PjLE9BNHpbso8dRNx /FW1cq+P5Mp+Nv6GSIBxzIDHKaVZsDy8zkoNOSJrrnbDIRhskUbVANbDjQNAj4p7vNQK 5O9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=4Znqc1vA0RwWeDhBuw6cLwyD4u2nY7D8Oi1A+u/Kq7Y=; b=R004Bt6wZfZDnyD35qEAJRq+EA6xCeyNW60zOvnYpWyvTYROrqIARbslD5ewstE+jy BGK757sZRq2HIUe5ffo2KX9afuSZETypR1S3bIkDTV5FRjJCPGI9S696UT6yPJSQyYvB BsNAz/EkF8XEzV/rWN4NrJM1bI7HD17m7iEp7NZv0b4YrhgnPjsyuW9TcSvafvU5ZG66 HIk9pQ7pGp4eZ23mh+l0fQpB7clyPkzIHBq5S70nRf1392g6blds7LYNIDaxGj3pE4Ul 8OHIVYVb+5KBAWPIEFKNaXMh6y/VQ7ZY7E07FfhXVr/1KYACEg416aUdbAEDFWtawu47 cQ9w== 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 8-v6si11520337pla.252.2018.10.26.06.28.06; Fri, 26 Oct 2018 06:28:22 -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 S1727372AbeJZWDG (ORCPT + 99 others); Fri, 26 Oct 2018 18:03:06 -0400 Received: from mga11.intel.com ([192.55.52.93]:28840 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbeJZWDF (ORCPT ); Fri, 26 Oct 2018 18:03:05 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Oct 2018 06:26:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,428,1534834800"; d="scan'208";a="100917176" Received: from pwolsza-mobl1.ger.corp.intel.com ([10.249.254.37]) by fmsmga004.fm.intel.com with ESMTP; 26 Oct 2018 06:25:55 -0700 Date: Fri, 26 Oct 2018 14:25:54 +0100 (IST) From: Jarkko Sakkinen X-X-Sender: jsakkine@jsakkine-mobl1 To: Tomas Winkler cc: Jarkko Sakkinen , 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 v2] tpm: fix kdoc for tpm2_flush_context_cmd() In-Reply-To: <20181026101558.11753-1-tomas.winkler@intel.com> Message-ID: References: <20181026101558.11753-1-tomas.winkler@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Oct 2018, Tomas Winkler wrote: > kdoc for tpm2_flush_context_cmd() was off. > > Fixes: 9aa36b399a50 ("tpm: export tpm2_flush_context_cmd")' > Signed-off-by: Tomas Winkler > --- > V2: drop 'commit' from Fixes: > drivers/char/tpm/tpm2-cmd.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c > index ae86fb0218ab..ba94dd5f11a4 100644 > --- a/drivers/char/tpm/tpm2-cmd.c > +++ b/drivers/char/tpm/tpm2-cmd.c > @@ -343,10 +343,9 @@ int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max) > /** > * tpm2_flush_context_cmd() - execute a TPM2_FlushContext command > * @chip: TPM chip to use > - * @payload: the key data in clear and encrypted form > - * @options: authentication values and other options > + * @handle: context handle > + * @flags: tpm transmit flags - bitmap > * > - * Return: same as with tpm_transmit_cmd > */ > void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle, > unsigned int flags) > -- > 2.14.5 > > A minor request. There's some convention mismatch in the subsystem. In some places the arguments are aligned and in some place they are not. In order to make educated decision what is right I checked Documentation/doc-guide/kernel-doc.rst. In the section called 'Function documentation' they are aligned. Can you do one more revision where @payload and @options are aligned (with a tab-character) now that you are updating the kdoc anyway? Otherwise, this looks good to me. /Jarkko