mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
Documentation/core-api: min_heap: remove documented but unimplemented min_heap_empty()
min_heap_empty()/min_heap_empty_inline() are documented as part of the Min Heap API, but no such functions or macros exist in include/linux/min_heap.h or lib/min_heap.c. Remove the stale description. Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jyun-An Chen <jun930436@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260722044236.6346-1-jun930436@gmail.com>
This commit is contained in:
committed by
Jonathan Corbet
parent
9ca62ed53f
commit
7ed594363b
@@ -240,19 +240,6 @@ This macro returns `true` if the heap is full, otherwise `false`.
|
||||
|
||||
**Inline Version:** min_heap_full_inline(heap)
|
||||
|
||||
- **min_heap_empty(heap)**: Checks whether the heap is empty.
|
||||
Complexity: **O(1)**.
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
bool empty = min_heap_empty(heap);
|
||||
|
||||
- `heap`: A pointer to the min-heap to check.
|
||||
|
||||
This macro returns `true` if the heap is empty, otherwise `false`.
|
||||
|
||||
**Inline Version:** min_heap_empty_inline(heap)
|
||||
|
||||
Example Usage
|
||||
=============
|
||||
|
||||
|
||||
Reference in New Issue
Block a user