]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mm: describe @flags parameter in memalloc_flags_save()
authorBagas Sanjaya <bagasdotme@gmail.com>
Fri, 19 Dec 2025 01:40:04 +0000 (08:40 +0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 15 Jan 2026 06:16:19 +0000 (22:16 -0800)
Patch series "mm kernel-doc fixes".

Here are kernel-doc fixes for mm subsystem.  I'm also including textsearch
fix since there's currently no maintainer for include/linux/textsearch.h
(get_maintainer.pl only shows LKML).

This patch (of 4):

Sphinx reports kernel-doc warning:

WARNING: ./include/linux/sched/mm.h:332 function parameter 'flags' not described in 'memalloc_flags_save'

Describe @flags to fix it.

Link: https://lkml.kernel.org/r/20251219014006.16328-2-bagasdotme@gmail.com
Link: https://lkml.kernel.org/r/20251219014006.16328-3-bagasdotme@gmail.com
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Fixes: 3f6d5e6a468d ("mm: introduce memalloc_flags_{save,restore}")
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Acked-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/sched/mm.h

index 0e1d73955fa511c8b2167b3a24b4a1c24717fb91..95d0040df58413fc5d436c0c12cde664532c1a28 100644 (file)
@@ -325,6 +325,7 @@ static inline void might_alloc(gfp_t gfp_mask)
 
 /**
  * memalloc_flags_save - Add a PF_* flag to current->flags, save old value
+ * @flags: Flags to add.
  *
  * This allows PF_* flags to be conveniently added, irrespective of current
  * value, and then the old version restored with memalloc_flags_restore().