Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/core-api: min_heap: update for variable types change

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").

Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250215155421.2010336-1-eleanor15x@gmail.com

authored by

Yu-Chun Lin and committed by
Jonathan Corbet
364469e5 85df12c5

+2 -2
+2 -2
Documentation/core-api/min_heap.rst
··· 47 47 48 48 #define MIN_HEAP_PREALLOCATED(_type, _name, _nr) 49 49 struct _name { 50 - int nr; /* Number of elements in the heap */ 51 - int size; /* Maximum number of elements that can be held */ 50 + size_t nr; /* Number of elements in the heap */ 51 + size_t size; /* Maximum number of elements that can be held */ 52 52 _type *data; /* Pointer to the heap data */ 53 53 _type preallocated[_nr]; /* Static preallocated array */ 54 54 }