Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2992215rwl; Fri, 6 Jan 2023 13:59:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXt8uZm/8FbrbhpoG4roqc/8Y+IjHCgAzJMU87QN9W4URRI4wTFRhVErsQEkNVvY9fwzVFgB X-Received: by 2002:a05:6a20:1586:b0:ad:5a5d:3571 with SMTP id h6-20020a056a20158600b000ad5a5d3571mr86191670pzj.4.1673042362268; Fri, 06 Jan 2023 13:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673042362; cv=none; d=google.com; s=arc-20160816; b=ScnwdwIvC8iRdaGUC8ZTBNVW4n0gr11i7fWB46KRaDXpkiUAGwf+KIvRRZ1c+cuBc7 9N9O8+S4dmS46/olBPEwMktgcA93WBD9iiOXiRdGgEJkTU0rXhWLNHz94YTMxrLz0SvP EfFc62TDyTTCGxCaTnGhDTrzHZ7binxunuaHpvQaEF11VymhKnIlKAo2Jm15Z4LnjF9X FhNSBzDoqZDh6ZmeFfN5j8D6nHSqgT60SjQ2Gg9XK9O0vW90xuynrKtBsgoOOOmcGCvc UTwTW7b+BFohtkpvb/i4gKp0bJv77OfG3NUFVnC2xb1OViLUvTmpyPPo46nFroUAtZfy 8UTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=we4WDla0B8D5etYJgGObevY0Omm564e2/Rat8mfhIu8=; b=Bj6Ggi3mOvnmPrm/wSH+xL58daMCCgwqm8hTihHWaWsL6CePiIQCa3Za6N8mtFvRrN ouL/sQ3ZQE6Ve2bm/ZDOv10vLClqrhNYMa4PwsXNA4prTErzb2CJD/xFgDtmzkrzLk0f +eqhoTSjzwM6eYgcM6cr8X3pWv+QjeiLdgsL0/5wKxx9i+L468d26T6BXv5lFy+IDwur 3aQ8CD8qxPBmw3don2cV7UereV5/H91bvhViK620mrBe844gbnVBpf4jGVgCb3PGTW5d kvTV70wo6ytsPfOzBJrTHHr64BmhSQD3hpPXUuAyWJfpbMf6BVtjnf1BBiLcvGUFj8Y0 ioCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=5ERgl2Du; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u35-20020a634723000000b0048219b9d027si2408522pga.269.2023.01.06.13.59.15; Fri, 06 Jan 2023 13:59:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=5ERgl2Du; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235821AbjAFVKX (ORCPT + 55 others); Fri, 6 Jan 2023 16:10:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbjAFVKT (ORCPT ); Fri, 6 Jan 2023 16:10:19 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA67C809AE; Fri, 6 Jan 2023 13:10:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=we4WDla0B8D5etYJgGObevY0Omm564e2/Rat8mfhIu8=; b=5ERgl2DunrlCdl8nOHQFtVlztA ATQ3XG5oc9WnvC+DpHMRjx/pttuvsqpDlixP0IUlt/jypqVuGrFMboJYX4+zshs0u8aEu8MQajtaj K0viwhjiJXNMcRL3yB0VngEh57qRj1oT1sbmZoDjYIoAhGZSt00QMZICq57ZwFzSeTaJHQptx8mEi yHuc+OYRwtQjr2nGZ0TDXe4g1k3DndTTSWH5gpYtv2rWbGp+07qFIQWJYeMe9iZbHNP0gPU7IB+Aj 9Xw8cZq2iDQddEPvLkIBZDLN4ed91jigdCK11oAaxjUDCMMWYDVYejAGcaE164H1XQPFux4Kq4Yvr 5HpcLSjQ==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDtyf-00EyFG-IH; Fri, 06 Jan 2023 21:10:14 +0000 Message-ID: Date: Fri, 6 Jan 2023 13:10:12 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] include/linux/mm: fix release_pages_arg kernel doc comment Content-Language: en-US To: SeongJae Park , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org References: <20230106203331.127532-1-sj@kernel.org> From: Randy Dunlap In-Reply-To: <20230106203331.127532-1-sj@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/6/23 12:33, SeongJae Park wrote: > Commit 449c796768c9 ("mm: teach release_pages() to take an array of > encoded page pointers too") added the kernel doc comment for > release_pages() on top of 'union release_pages_arg', so making 'make > htmldocs' complains as below: > > ./include/linux/mm.h:1268: warning: cannot understand function prototype: 'typedef union ' > > The kernel doc comment for the function is already on top of the > function's definition in mm/swap.c, and the new comment is actually not > for the function but indeed release_pages_arg. Fixing the comment to > reflect the intent would be one option. But, kernel doc cannot parse > the union as below due to the attribute. > > ./include/linux/mm.h:1272: error: Cannot parse struct or union! > > Modify the comment to reflect the intent but do not mark it as a kernel > doc comment. > > Fixes: 449c796768c9 ("mm: teach release_pages() to take an array of encoded page pointers too") > Signed-off-by: SeongJae Park Acked-by: Randy Dunlap Thanks. > --- > include/linux/mm.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/mm.h b/include/linux/mm.h > index a2bf261cdbef..3df8815f6d51 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -1297,10 +1297,10 @@ static inline void folio_put_refs(struct folio *folio, int refs) > __folio_put(folio); > } > > -/** > - * release_pages - release an array of pages or folios > +/* > + * union release_pages_arg - an array of pages or folios > * > - * This just releases a simple array of multiple pages, and > + * release_pages() releases a simple array of multiple pages, and > * accepts various different forms of said page array: either > * a regular old boring array of pages, an array of folios, or > * an array of encoded page pointers. -- ~Randy