From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4C2C3EA977 for ; Wed, 22 Jul 2026 04:44:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784695492; cv=none; b=JZ9yQCIjWJ227yRFnstK3limpgjZKAXQ4KTelO1NwC576W5yfigwCk/jmNiViia7aVrqRVP3eXk4jGNU9JbRn0M4c4ZRW9OvYDTFf28IFVY+iHeTYTeLdMIBPC/jtyOfb/KAoUEFLrL3d/apWNkWM/be0HM/rXPwvxxjkZ+F5dg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784695492; c=relaxed/simple; bh=S4ZZskSWu6hnDAKTmmxRJbUzN1DVQxqyUudkEDmE5Ds=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jelFry7koxWtDC83wgdy0c4f55Hs6ZNQyVc6f02X2oG3o69gdAb5eSKyfTF5Iay+H/YY0HN3WURy/W4o7oXsjoeiPyiZwXFxXXYn5tj+zc2b6B+NA1VYNAb7ioByxdARav8Fyb9wSsFVEw5kgpalbIUztYqrHDA8fiPdVliNZPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=L7MurN7g; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L7MurN7g" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-84a2dcec51cso11308827b3a.3 for ; Tue, 21 Jul 2026 21:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784695490; x=1785300290; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=xeWKxJyA+9fWx2LL2WoI6edsZOwmmMa3RMgRh/3VoYs=; b=L7MurN7gzaQIFubuIZDWWlSYsBqgmKkhk6fdQeNNgE9QjdaOaSxtwNwnt6Bxbn7hXs 8378k9ipvQo74/GhAPWV4S6kVN5N71FqrBbqWHo6fWZP+7EOpy62QSPhvMVm/CpuyJxg nSoynjUoNZIppHHJTGU1WyONyS2heF37ZoxfHjpv0rLPk1jwp3tynIqysk1gCmuiLkyY Yfu7IeDgyYvtpwyQD5vQ/lCUIsyXfOL6R99OhuFdg59l07M72Nu8aOuNaFkQ4m2Xz9cV BVV/EK4AMHZ+usmlFf7G4cJ7YGU8pTsSDwBm111O9eUtR9XRZt7NeH2H2zhr64djJ+v0 5mbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784695490; x=1785300290; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xeWKxJyA+9fWx2LL2WoI6edsZOwmmMa3RMgRh/3VoYs=; b=Pt4Trjgzj9vKztKM8k8bD+cysR+M9gErhdUW94IvpuQewqScHZteJnVUOjTCeCpeGJ 1Yc7tMgmRj5lUo/tVCGBekYB4iS5Pd8TK7OkdpWuN63PwPTxcMIfLxb0ZamvWs3Sm2EP cHkrsOXb5zWRuoKtKANtJVgo5czAPMLIDOQCBM71RQxXBUW3OXsgjDbMdu3QNLMLs/T7 RMjV6z9QPhw9YBcSPn2Csfb/FA7qSk336JiUPZLA6tJEyX7pAgIFevOD1b3n/Z1C62GH saUmLUt5pdsgqpapKK84AyxO9L/s131N0P2nZz84tvCfPDWedHOeCBD4RrEvnRN66CbS Kipw== X-Forwarded-Encrypted: i=1; AHgh+RpjVX+hI7UbyYsWkCDUxR8b0uu4UfAibByi1HiCjgwObH6g4GS+MXPKiGorCw3LBWzZGLT8HKa+M0Zzaaw=@vger.kernel.org X-Gm-Message-State: AOJu0YwWHDnec5MHcAoMhqYNQzgAKBgMvMNkqWfbh+XntQ5L2LT3D5KU /F1necEqmCPijSrev/2EDmEiEeuq82GMAnkYJMg4agvwlvWKibg6skOS X-Gm-Gg: AR+sD10QDT8WkLMQehtw4oQ1vGXIQg9rwkxo5ZUp2ZrATxIf7gBLxOVS4wrEBzml2dv nfpewf0oMJWXvfpcd352/8kyfe8bR/99if+Xni/p/+ruMylMIv/m56jUR2ZdkbQpMPZB09gzal9 eKi8M5ex3LCWh1NoZlyTzIDjEp6pLvTJaxvEhoJ8Yj9Q7o1lkVdDUGp81FkBhmwjcoM5eA3cHX8 lSgRU6/ioAyeEfPC906LCXaEpabAX7CuqpF1COcSrwUUx40Sd3xhtoFaYHUmkXykfqqnUhYF+5C LAKGS1hc6LoPRfZzBr1irzQC7B0yRIhjrheEu4VGSpRG5YGcIFc62csmmvBo5slSENfxh/3clKp 1Avvb1xuYszG1sA+8mx6jwnz+Uj5qapPc2x0/pdl+EXgGD3+OSDEUhroq8XLfHPn8yKfCfHwZsN Y+x6g2o0Wpk7x79E9TWukDC+f7C8VhIITZxoxWDT+ve9o= X-Received: by 2002:a05:6a00:a11c:b0:84a:29a7:f3b3 with SMTP id d2e1a72fcca58-84c294e7925mr14086379b3a.68.1784695490139; Tue, 21 Jul 2026 21:44:50 -0700 (PDT) Received: from colten.. (61-227-26-231.dynamic-ip.hinet.net. [61.227.26.231]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84e175ce455sm654475b3a.48.2026.07.21.21.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 21:44:49 -0700 (PDT) From: Jyun-An Chen To: Kuan-Wei Chiu Cc: Jyun-An Chen , Randy Dunlap , Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org (open list:MIN HEAP), linux-doc@vger.kernel.org (open list:DOCUMENTATION) Subject: [PATCH v4] Documentation/core-api: min_heap: remove documented but unimplemented min_heap_empty() Date: Wed, 22 Jul 2026 04:42:36 +0000 Message-ID: <20260722044236.6346-1-jun930436@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Jyun-An Chen Acked-by: Kuan-Wei Chiu Acked-by: Randy Dunlap --- Changes since v3: - removed an unnecessary clause. 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 ============= -- 2.43.0