Re: linux-next: build warning after merge of the akpm-current tree

From: Liam Howlett
Date: Wed Apr 27 2022 - 10:16:19 EST


* Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> [220427 02:41]:
> Hi all,
>
> After merging the akpm-current tree, today's linux-next build (htmldocs)
> produced this warning:
>
> lib/maple_tree.c:5578: warning: Function parameter or member 'gfp' not described in 'mas_preallocate'
>
> Introduced by commit
>
> 00d332902d28 ("Maple Tree: add new data structure")

Hi Stephen,

Here is a patch to add the missing parameter to the documentation.

Thanks,
Liam
From c7446bac64d59eb26cbf500cc035d6c50e5260fb Mon Sep 17 00:00:00 2001
From: "Liam R. Howlett" <Liam.Howlett@xxxxxxxxxx>
Date: Wed, 27 Apr 2022 10:13:52 -0400
Subject: [PATCH] maple_tree: Fix mas_store_prealloc() documentation

Add gfp flags to the docs

Signed-off-by: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx>
---
lib/maple_tree.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 75fd119f8224..c7b7a10b15d5 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -5571,6 +5571,7 @@ void mas_store_prealloc(struct ma_state *mas, void *entry)
* mas_preallocate() - Preallocate enough nodes for a store operation
* @mas: The maple state
* @entry: The entry that will be stored
+ * @gfp: The GFP_FLAGS to use for allocations.
*
* Return: 0 on success, -ENOMEM if memory could not be allocated.
*/
--
2.35.1