Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2916062rwl; Fri, 6 Jan 2023 12:40:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXtAC/beR5ToPMab4lP1iyp1NYkVt0T44QGTwl8uC940zEwEcUsA6pGnRMMVY8GaN3btnV+u X-Received: by 2002:a05:6a20:4996:b0:9d:efbf:6607 with SMTP id fs22-20020a056a20499600b0009defbf6607mr60520013pzb.21.1673037635693; Fri, 06 Jan 2023 12:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673037635; cv=none; d=google.com; s=arc-20160816; b=iydIH+ql8Ya4FmdQBHNghQTc4H+Auegq61AF4ykA9MwSfu3N95YVmKgn42I1EJtig/ /ox0AO7RftmPXKf8n7d9KpYMoGMqbHaXV6rT02xQgkAlLUkTyKXfJMWdYGvOHAJfxjxE cr7sEGonL59gPUrzVM2M5xt7d4L1lWk7iUpc3Hid1CSCc/zKhxwxXegJwS53nG0AViaA uZrAwB8GzV8oQoSxrxE1AeckPQMDDflqUeqo8ZJKgsmX0urLhEQM0w9EwtFvIq6sbcI2 8BoW5a6Zt2AfN9ty8Wve9W8h4PfmkvqpWrKBdDmCz4OUhtAMv5uv9DdZGSHb+In+K3lP pc+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yjuwzhMM4uGFYtJqpLgJbZI485ukMaO5b/nVCGUGNG0=; b=sGF1Coz4CIPHije7BclqZm4/AvCXctxszWgoJKF7oCNjsEcZEePNmH4UnZkGBiq3er YYdsfiVy74Urw0oNjrD5SnfceVCk7t3Fy4fXj/tyPOqpRNRBWTCT2aHwMUNVRSgGG8sB rEcMYvv9otHwlDpkqLyRRP3zQjBLZbBgjpy6bYdHpsnnK0tx6Txhgg5jKowXjClOYuQO 52mHSJ6hOYhlZ4OFAfh8xd7WUVjMH8ZTuXkJ2PiYiCy7VJgHrzmCXVb7dIzIZncXAu6u cQ8JzLWaA0pBJ/TuvcWsT4FRWl0ksQFafa+XQ6CWI7Feefl9OB0y5keKVYmqpArjRD5L kRBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UfFy2UIy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a63ad07000000b0047813915b38si2224419pgf.767.2023.01.06.12.40.28; Fri, 06 Jan 2023 12:40:35 -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=@kernel.org header.s=k20201202 header.b=UfFy2UIy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbjAFUeJ (ORCPT + 55 others); Fri, 6 Jan 2023 15:34:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjAFUdh (ORCPT ); Fri, 6 Jan 2023 15:33:37 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3253D5AC40; Fri, 6 Jan 2023 12:33:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CA97161F46; Fri, 6 Jan 2023 20:33:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD775C433EF; Fri, 6 Jan 2023 20:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673037215; bh=70eLmqi50DwC4nGrPC6/BhJbdlKVrPt5HYhMfBWpJBc=; h=From:To:Cc:Subject:Date:From; b=UfFy2UIysVqCxWrNKjf2Jr8Hf6TtCep7aeD7mCO4w6TSdgK/anVbepYZjzWj+HtsT 8u+UnX/hBhFxGZ+OF4GB2Kq6td4lFIXgcWX4brSuw/vmUFoOeiSh6ZMMqyQHUFOeZ/ zzWrjqZBrRu1ujLDeVwLko5/4E4LNoFpth8IZQIYXYWCLiGa175VU8YIr9F0h51ATG S583TMR0011jHZ+wV3E3GmmxR7CJDmeRHGW3IFD/+10n6aDdg8uldIJX+OcXlGch6F dXnSFDryDTI5C6R8fGOU/AgJmR6cf7PXqZrYEsAnVLIedRtNKhOCWkPXlyOQbAnC5w CbVBv3EkdEdPw== From: SeongJae Park To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, SeongJae Park Subject: [PATCH] include/linux/mm: fix release_pages_arg kernel doc comment Date: Fri, 6 Jan 2023 20:33:31 +0000 Message-Id: <20230106203331.127532-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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 --- 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. -- 2.25.1