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=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 4336BC433B4 for ; Fri, 23 Apr 2021 20:40:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BA53E613B1 for ; Fri, 23 Apr 2021 20:40:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA53E613B1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3FA6D6B006E; Fri, 23 Apr 2021 16:40:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3AAAD6B0070; Fri, 23 Apr 2021 16:40:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 223B36B0071; Fri, 23 Apr 2021 16:40:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0018.hostedemail.com [216.40.44.18]) by kanga.kvack.org (Postfix) with ESMTP id 043EA6B006E for ; Fri, 23 Apr 2021 16:40:30 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id BB23B8248D7C for ; Fri, 23 Apr 2021 20:40:30 +0000 (UTC) X-FDA: 78064799820.05.B2005DF Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf16.hostedemail.com (Postfix) with ESMTP id 6191380192F6 for ; Fri, 23 Apr 2021 20:40:28 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 11AE1613C1; Fri, 23 Apr 2021 20:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619210429; bh=KyPSNr9yTjqsJUynAaPagNgn1DGc+4b1wUhmWv8oVmQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qOnL9h0lBE7kzt4TmeczV0HoUBrNGOw7wgc2xkVA/iS1yyL+858t6TYfdekM1LCoK EWYBkM34aFGMYjHuJ1kZezmgUMN7iFHXJj+A8c0d6vJfA68hqvSYrrIZkY5r1M5MCk 2b/R5Bemh6HIKoo9EOBCS6pspa3effVtgcrjCwYOsZKry2442OqlOJO0Jt9+/mOMHn Tt1Gpw6lpinMczIluFp5AYSTYjslAT57ivVWSq5/VU98IrOwZU1ANkvxe+4YdS4eG/ 3C2Ciq48SgHkjM+4w6flLqQynzBite4KzlcaDaqu0NVqajrPzmezufm2+9NWfsr1R2 53CFa+vGL8BXA== From: Mike Rapoport To: Andrew Morton Cc: Jonathan Corbet , Mike Rapoport , Mike Rapoport , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/2] mm/mmzone.h: fix existing kernel-doc comments and link them to core-api Date: Fri, 23 Apr 2021 23:38:10 +0300 Message-Id: <20210423203811.1247508-2-rppt@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210423203811.1247508-1-rppt@kernel.org> References: <20210423203811.1247508-1-rppt@kernel.org> MIME-Version: 1.0 X-Stat-Signature: kxgk3iitpsowmaw854665ssc4nqxezsm X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 6191380192F6 Received-SPF: none (kernel.org>: No applicable sender policy available) receiver=imf16; identity=mailfrom; envelope-from=""; helo=mail.kernel.org; client-ip=198.145.29.99 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1619210428-64476 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Mike Rapoport There are a couple of kernel-doc comments in include/linux/mmzone.h but they have minor formatting issues that would cause kernel-doc warnings. Fix the formatting of those comments, add missing Return: descriptions an= d link include/linux/mmzone.h to Documentation/core-api/mm-api.rst Signed-off-by: Mike Rapoport --- Documentation/core-api/mm-api.rst | 2 ++ include/linux/mmzone.h | 43 +++++++++++++++++-------------- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/Documentation/core-api/mm-api.rst b/Documentation/core-api/m= m-api.rst index 201b5423303b..3079af5a2404 100644 --- a/Documentation/core-api/mm-api.rst +++ b/Documentation/core-api/mm-api.rst @@ -92,3 +92,5 @@ More Memory Management Functions :export: =20 .. kernel-doc:: mm/page_alloc.c + +.. kernel-doc:: include/linux/mmzone.h diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 47946cec7584..3b2205741048 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -993,7 +993,8 @@ static inline int is_highmem_idx(enum zone_type idx) * is_highmem - helper function to quickly check if a struct zone is a * highmem zone or not. This is an attempt to keep referen= ces * to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a mi= nimum. - * @zone - pointer to struct zone variable + * @zone: pointer to struct zone variable + * Return: 1 for a highmem zone, 0 otherwise */ static inline int is_highmem(struct zone *zone) { @@ -1044,7 +1045,7 @@ extern struct zone *next_zone(struct zone *zone); =20 /** * for_each_online_pgdat - helper macro to iterate over all online nodes - * @pgdat - pointer to a pg_data_t variable + * @pgdat: pointer to a pg_data_t variable */ #define for_each_online_pgdat(pgdat) \ for (pgdat =3D first_online_pgdat(); \ @@ -1052,7 +1053,7 @@ extern struct zone *next_zone(struct zone *zone); pgdat =3D next_online_pgdat(pgdat)) /** * for_each_zone - helper macro to iterate over all memory zones - * @zone - pointer to struct zone variable + * @zone: pointer to struct zone variable * * The user only needs to declare the zone variable, for_each_zone * fills it in. @@ -1091,15 +1092,18 @@ struct zoneref *__next_zones_zonelist(struct zone= ref *z, =20 /** * next_zones_zonelist - Returns the next zone at or below highest_zonei= dx within the allowed nodemask using a cursor within a zonelist as a star= ting point - * @z - The cursor used as a starting point for the search - * @highest_zoneidx - The zone index of the highest zone to return - * @nodes - An optional nodemask to filter the zonelist with + * @z: The cursor used as a starting point for the search + * @highest_zoneidx: The zone index of the highest zone to return + * @nodes: An optional nodemask to filter the zonelist with * * This function returns the next zone at or below a given zone index th= at is * within the allowed nodemask using a cursor as the starting point for = the * search. The zoneref returned is a cursor that represents the current = zone * being examined. It should be advanced by one before calling * next_zones_zonelist again. + * + * Return: the next zone at or below highest_zoneidx within the allowed + * nodemask using a cursor within a zonelist as a starting point */ static __always_inline struct zoneref *next_zones_zonelist(struct zonere= f *z, enum zone_type highest_zoneidx, @@ -1112,10 +1116,9 @@ static __always_inline struct zoneref *next_zones_= zonelist(struct zoneref *z, =20 /** * first_zones_zonelist - Returns the first zone at or below highest_zon= eidx within the allowed nodemask in a zonelist - * @zonelist - The zonelist to search for a suitable zone - * @highest_zoneidx - The zone index of the highest zone to return - * @nodes - An optional nodemask to filter the zonelist with - * @return - Zoneref pointer for the first suitable zone found (see belo= w) + * @zonelist: The zonelist to search for a suitable zone + * @highest_zoneidx: The zone index of the highest zone to return + * @nodes: An optional nodemask to filter the zonelist with * * This function returns the first zone at or below a given zone index t= hat is * within the allowed nodemask. The zoneref returned is a cursor that ca= n be @@ -1125,6 +1128,8 @@ static __always_inline struct zoneref *next_zones_z= onelist(struct zoneref *z, * When no eligible zone is found, zoneref->zone is NULL (zoneref itself= is * never NULL). This may happen either genuinely, or due to concurrent n= odemask * update due to cpuset modification. + * + * Return: Zoneref pointer for the first suitable zone found */ static inline struct zoneref *first_zones_zonelist(struct zonelist *zone= list, enum zone_type highest_zoneidx, @@ -1136,11 +1141,11 @@ static inline struct zoneref *first_zones_zonelis= t(struct zonelist *zonelist, =20 /** * for_each_zone_zonelist_nodemask - helper macro to iterate over valid = zones in a zonelist at or below a given zone index and within a nodemask - * @zone - The current zone in the iterator - * @z - The current pointer within zonelist->_zonerefs being iterated - * @zlist - The zonelist being iterated - * @highidx - The zone index of the highest zone to return - * @nodemask - Nodemask allowed by the allocator + * @zone: The current zone in the iterator + * @z: The current pointer within zonelist->_zonerefs being iterated + * @zlist: The zonelist being iterated + * @highidx: The zone index of the highest zone to return + * @nodemask: Nodemask allowed by the allocator * * This iterator iterates though all zones at or below a given zone inde= x and * within a given nodemask @@ -1160,10 +1165,10 @@ static inline struct zoneref *first_zones_zonelis= t(struct zonelist *zonelist, =20 /** * for_each_zone_zonelist - helper macro to iterate over valid zones in = a zonelist at or below a given zone index - * @zone - The current zone in the iterator - * @z - The current pointer within zonelist->zones being iterated - * @zlist - The zonelist being iterated - * @highidx - The zone index of the highest zone to return + * @zone: The current zone in the iterator + * @z: The current pointer within zonelist->zones being iterated + * @zlist: The zonelist being iterated + * @highidx: The zone index of the highest zone to return * * This iterator iterates though all zones at or below a given zone inde= x. */ --=20 2.29.2