Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp391474pxv; Thu, 15 Jul 2021 06:43:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnHKQGksURToQ+BKMRrd8TGZ3hk7clUCeRW+lvfWMmMLQVzG3o5brC/DtkXGQ++kAtW0HB X-Received: by 2002:a05:6402:3453:: with SMTP id l19mr7037835edc.88.1626356618138; Thu, 15 Jul 2021 06:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626356618; cv=none; d=google.com; s=arc-20160816; b=XuVfhr1E8KILnkuYrVVF0VNsy5bnH5PjeuBlqP3MVim4T5sPOUJBJUWRPn3T22VrKv h6eKKVXwSu/4ZPdM1aMumgAilI6qZM6tvLVhISU07OYlJnvdz3JRAz3hHvvodWLMxTuv kj9R1wfuza1PxS1J3plBacBM0+Ll86JJTVV0rQGbMDiml5zLfPNphxZsTebRCW3ke3o+ LWodMU7NsIqNHShL3MagFf3eGv7dyCB0bTqW4aXRRbtxNZcMc7dTSh4bTb+X/4l6uXcw NyPVVVocksPxSubEd0vg+6yiTQN2w3h9izpPiM90fqYri/vO2n3IHfSLLvjf4GiTt2+1 2cyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=16NrxNXdsZGHCu10SMd1Goo1Lq1UliirtAERuWALaG4=; b=VPu3HyvdAJjzzMIcvI9WdyIgpqKWFh7ba8hdUA5fjfrMGkiqHP5q55caQbQ5jFU3nM PzwvwRW0x2ZJwkYk0AiJCwbnv1/0pgYrq6gw6reuW7H1Yxz+hxRBPtsm00tOxutMWElO ukDSczEl4KD/Sc3APmO3LNUkYLuDXPcZ7t+vodxMJ1xHD85blPOlX1JXCAIcvxpaaY3T o0WET4Qwp18YLt3FbeHJiSe6Bq3EXaZMNgDwa0Lwht19yMPSxHKl0bptdfk3DkjW1S8v oub1WV1tv0L7SmZh6YaW9De2r2x9rUucWQSINKkpKkUdCooTykwmARBgfrOFL5e03Mby Nq8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v9si7213722ejc.307.2021.07.15.06.43.14; Thu, 15 Jul 2021 06:43:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240650AbhGOKhP (ORCPT + 99 others); Thu, 15 Jul 2021 06:37:15 -0400 Received: from mga06.intel.com ([134.134.136.31]:16970 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231670AbhGOKhO (ORCPT ); Thu, 15 Jul 2021 06:37:14 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10045"; a="271634220" X-IronPort-AV: E=Sophos;i="5.84,240,1620716400"; d="scan'208";a="271634220" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2021 03:34:21 -0700 X-IronPort-AV: E=Sophos;i="5.84,240,1620716400"; d="scan'208";a="452373614" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2021 03:34:17 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1m3yh0-00DhHX-P0; Thu, 15 Jul 2021 13:34:10 +0300 Date: Thu, 15 Jul 2021 13:34:10 +0300 From: Andy Shevchenko To: Jia He Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Jonathan Corbet , Alexander Viro , Linus Torvalds , "Peter Zijlstra (Intel)" , Eric Biggers , "Ahmed S. Darwish" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Christoph Hellwig , nd@arm.com Subject: Re: [PATCH v7 1/5] d_path: fix Kernel doc validator complaints Message-ID: References: <20210715011407.7449-1-justin.he@arm.com> <20210715011407.7449-2-justin.he@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715011407.7449-2-justin.he@arm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 09:14:03AM +0800, Jia He wrote: > Kernel doc validator complains: > Function parameter or member 'p' not described in 'prepend_name' > Excess function parameter 'buffer' description in 'prepend_name' Yup! Reviewed-by: Andy Shevchenko > Fixes: ad08ae586586 ("d_path: introduce struct prepend_buffer") > Cc: Al Viro > Signed-off-by: Jia He > --- > fs/d_path.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/fs/d_path.c b/fs/d_path.c > index 23a53f7b5c71..4eb31f86ca88 100644 > --- a/fs/d_path.c > +++ b/fs/d_path.c > @@ -33,9 +33,8 @@ static void prepend(struct prepend_buffer *p, const char *str, int namelen) > > /** > * prepend_name - prepend a pathname in front of current buffer pointer > - * @buffer: buffer pointer > - * @buflen: allocated length of the buffer > - * @name: name string and length qstr structure > + * @p: prepend buffer which contains buffer pointer and allocated length > + * @name: name string and length qstr structure > * > * With RCU path tracing, it may race with d_move(). Use READ_ONCE() to > * make sure that either the old or the new name pointer and length are > @@ -108,8 +107,7 @@ static int __prepend_path(const struct dentry *dentry, const struct mount *mnt, > * prepend_path - Prepend path string to a buffer > * @path: the dentry/vfsmount to report > * @root: root vfsmnt/dentry > - * @buffer: pointer to the end of the buffer > - * @buflen: pointer to buffer length > + * @p: prepend buffer which contains buffer pointer and allocated length > * > * The function will first try to write out the pathname without taking any > * lock other than the RCU read lock to make sure that dentries won't go away. > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko