All of lore.kernel.org
 help / color / mirror / Atom feed
* + documentation-core-api-min_heap-update-for-variable-types-change.patch added to mm-nonmm-unstable branch
@ 2025-02-18  4:27 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-02-18  4:27 UTC (permalink / raw)
  To: mm-commits, visitorckw, jserv, corbet, eleanor15x, akpm


The patch titled
     Subject: Documentation/core-api: min_heap: update for variable types change
has been added to the -mm mm-nonmm-unstable branch.  Its filename is
     documentation-core-api-min_heap-update-for-variable-types-change.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/documentation-core-api-min_heap-update-for-variable-types-change.patch

This patch will later appear in the mm-nonmm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Yu-Chun Lin <eleanor15x@gmail.com>
Subject: Documentation/core-api: min_heap: update for variable types change
Date: Sat, 15 Feb 2025 23:54:21 +0800

Update the documentation to reflect the change in variable types of 'nr'
and 'size' from 'int' to 'size_t', ensuring consistency with commit
dec6c0aac4fc ("lib min_heap: Switch to size_t").

Link: https://lkml.kernel.org/r/20250215155421.2010336-1-eleanor15x@gmail.com
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Ching-Chun (Jim) Huang <jserv@ccns.ncku.edu.tw>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 Documentation/core-api/min_heap.rst |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/Documentation/core-api/min_heap.rst~documentation-core-api-min_heap-update-for-variable-types-change
+++ a/Documentation/core-api/min_heap.rst
@@ -47,8 +47,8 @@ Example:
 
     #define MIN_HEAP_PREALLOCATED(_type, _name, _nr)
     struct _name {
-        int nr;         /* Number of elements in the heap */
-        int size;       /* Maximum number of elements that can be held */
+        size_t nr;         /* Number of elements in the heap */
+        size_t size;       /* Maximum number of elements that can be held */
         _type *data;    /* Pointer to the heap data */
         _type preallocated[_nr];  /* Static preallocated array */
     }
_

Patches currently in -mm which might be from eleanor15x@gmail.com are

documentation-core-api-min_heap-update-for-variable-types-change.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-18  4:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-18  4:27 + documentation-core-api-min_heap-update-for-variable-types-change.patch added to mm-nonmm-unstable branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.