From 7ed594363b5f080e66285ebc2048ae69e5b558f9 Mon Sep 17 00:00:00 2001 From: Jyun-An Chen Date: Wed, 22 Jul 2026 04:42:36 +0000 Subject: [PATCH] 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 Acked-by: Randy Dunlap Signed-off-by: Jyun-An Chen Signed-off-by: Jonathan Corbet Message-ID: <20260722044236.6346-1-jun930436@gmail.com> --- Documentation/core-api/min_heap.rst | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Documentation/core-api/min_heap.rst b/Documentation/core-api/min_heap.rst index 9f57766581df..919dcf1bdec7 100644 --- a/Documentation/core-api/min_heap.rst +++ b/Documentation/core-api/min_heap.rst @@ -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 =============