From patchwork Mon Jun 28 01:46:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12347189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41000C48BC2 for ; Mon, 28 Jun 2021 01:46:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C83F61A2B for ; Mon, 28 Jun 2021 01:46:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231815AbhF1Bsj (ORCPT ); Sun, 27 Jun 2021 21:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231678AbhF1Bsj (ORCPT ); Sun, 27 Jun 2021 21:48:39 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD1B2C061574; Sun, 27 Jun 2021 18:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=T1V4LnCOqt86npWtAgDZzgAvOt8LGMICP/X3psZ1yV4=; b=wJwdpQgfutAX0oOIJ1JPRYMm9x k73cHl/qMFlhimtuyw/gQ0jwaOhKEmHBLe9i7goni3d5WtG2YOxRMuc+xG625bAPCPQ13d0bVscME viJCj3JFJ91z9nJgghFytNIgpKOhP0DMW1Bo2ro8Csob9dCMmETBjhaolMQYf37ce8LZ+5Wj3gA3U 3LqBPSXdcL3WZvyDxXppQMS/sUCl9UW8fBLjQWaYLD0aN3NTVF6DrKJYSVbiU20/d+/ACYetA63ya IMhJdd/EICM2elh1xsBbiCAVgK5UkwVx4QQ/IOVL5vjFYPNUUled5qVSsvug22CdH/QgwmEhhYKPy hhG9btAg==; Received: from [2601:1c0:6280:3f0::aefb] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxgLm-006Tjs-0u; Mon, 28 Jun 2021 01:46:14 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Al Viro , linux-fsdevel@vger.kernel.org Subject: [PATCH -next] fs: d_path.c: fix prepend_buffer kernel-doc warnings Date: Sun, 27 Jun 2021 18:46:13 -0700 Message-Id: <20210628014613.11296-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Fix new kernel-doc warnings related to struct prepend_buffer: ../fs/d_path.c:52: warning: Excess function parameter 'buffer' description in 'prepend_name' ../fs/d_path.c:52: warning: Excess function parameter 'buflen' description in 'prepend_name' ../fs/d_path.c:127: warning: Excess function parameter 'buffer' description in 'prepend_path' ../fs/d_path.c:127: warning: Excess function parameter 'buflen' description in 'prepend_path' Fixes: ad08ae586586e ("d_path: introduce struct prepend_buffer") Signed-off-by: Randy Dunlap Cc: Al Viro Cc: linux-fsdevel@vger.kernel.org --- fs/d_path.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- linux-next-20210625.orig/fs/d_path.c +++ linux-next-20210625/fs/d_path.c @@ -33,8 +33,7 @@ static void prepend(struct prepend_buffe /** * prepend_name - prepend a pathname in front of current buffer pointer - * @buffer: buffer pointer - * @buflen: allocated length of the buffer + * @p: &struct prepend_buffer parameters * @name: name string and length qstr structure * * With RCU path tracing, it may race with d_move(). Use READ_ONCE() to @@ -108,8 +107,7 @@ static int __prepend_path(const struct d * 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: &struct prepend_buffer parameters * * 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.