From nobody Sat Jul 25 00:10:55 2026 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 768A646D570 for ; Tue, 21 Jul 2026 18:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784656954; cv=none; b=nDn2swQ8E2DBRRiFa+s/nxqRwymsPnt1UrwC1bbvLIivijfDghC9TL4At9gpv/BPEpVkuicRa4SM+EBZeJVnZWLCCsBMgbjmHnjSVRuj91XUVo96LlCsCf/ZUdO5VuNtBXyo4umyfwOz4kCdN2yq5tTO//qSO7NSn80mE6RDQvs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784656954; c=relaxed/simple; bh=HKH0+HbokDXh/rn5p2SK+C0zJmVZ73sN1daWgM6y5QA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cTcg9RSBw+gfXc66FC8WWUirx2id+/DRE7Rb5vSZCMilp3aGVU/UiserU/wpcyxNDLT8FueXA6db7ZWOQH4h6FBlUOGjO0/Gu/x1XWCW62uiMbAYn7xXA2IRcaFEOY6L50zG0decIVfPhzaB/VbdXRBFd7Hnu+X6VQW5v2+Higs= 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=oG7yqNu6; arc=none smtp.client-ip=209.85.215.181 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="oG7yqNu6" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-caf707e3a70so3293574a12.1 for ; Tue, 21 Jul 2026 11:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784656953; x=1785261753; 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=ToKjxxyfW8IKJFoIuUe/iSEPgjioSXrKsuhUrkem51E=; b=oG7yqNu69K3tLhKYigDMCIpO8Nwc7TX8dlAzrUEWlyawyuOvkwx4U2OuQV2bIMtDqy 48XLsr1ywQ1VZ2SCVlUC9tf4Hv24x0GVzE/9ei+SVeVxa1wnH+6jLfNTSPgwpgAYOLaU /gSr4Ibl8mZyd0COUgV9Cznghbq7v3ABMQ871aMDEOjFrytcXiZPbkrRNdcCyivlCI+S Qilo7+W2+myC7C5XPiSHhynb6rFmG8+MewjKUQnIxV4/XlqtzQXkn79RlH7RQKn2VzWO q6d+O50AP3bs8Aiqeef2anCr7iC94D+ctN7/47pi36OZd8T0iZr9KEzXoYxqfDr/0qa/ IH3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784656953; x=1785261753; 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=ToKjxxyfW8IKJFoIuUe/iSEPgjioSXrKsuhUrkem51E=; b=I3x5RbF/oKoLo3rZ6+0mO5FRejaooIRt5o6bMqCuVeWCkV+aysM4OPwELPe2yMEYi0 fQJgzi+EmKX33S2XhbRAXEmrT8DjiQXRXCMOuxd8PFfH4TAER8PJmn+7O8/pGZ2yqwFY 1bs6/5CV5z0P5XAlwl34tad+r4OuVEmGFoh988NZK2f/3uu9fxF95RLFB+7OvmjYwoy7 kZtKj/T1ecVlyKGMBMgrvCOavlRupU7peDQ6rJnO9wK9TqZlooc8vXfIAgxhkpgKkOaf EyLnQVumGbV0/sUFYaBaZ1zcKBo0j1FDYOcFKo7Np450vQg9dP+7ssnnoMa+0jFGz2go GZUg== X-Forwarded-Encrypted: i=1; AHgh+RrRMPELZmQ9FCrPBnLJoMfPLfe9uKG/fsWPOuZhW2JA60DcpwX3SckwKv0lHX32YU14deN7AUNubsJtF+w=@vger.kernel.org X-Gm-Message-State: AOJu0YwWXBSslzNWK/cm6JjvtljDjX4f2aasHfuk9/4OMng3KH0irYNu cM28QWRR+TRzBTzmO55qIdtDsvo50b2NtJFUi+qJvEHDurai+qMXf5mO X-Gm-Gg: AfdE7ckM9ttFf2o8opibbCSmk5GKx0FZZA+EXc41CXiSW50aDqfJbT3RBM2jpPLEGVF OyXayKwKZ8jyopPdboBmi2i+I3gLeSjYSVr4M8LMQpmbAfJuvbcvGvh9hai2aGnDPSWAdeeEDYF kHTQVUz92TMEuul9hX7A6FoCcC0kqT92D7XBlQP40qUXAr/NLYW/4PZdiN5Gl7iSnn3QAqNqUNE JT/l+iwcFK9HPUb0FExTxVMaqnHx527ytl6DLRSevJvDB60dpMWnK7I7Mn8HTUVOjBjv76Fg2q/ pIWomPU/ZLsYEpzK9P56SARFMMfg7x3U5M5MlctU0wKQwVfeoKsl+0CV6AuCnrCi89R8x9xAETY 85aQ11Mu/xaNIGJ1ke7uMyAcmWNnS1NVPXrTuXT6DW2o5/LESVrVpvdbj17qymcam0Mh7JT59Ly 8yRpECZdnjMojur8yKTHhb6PC6kRcvu5f6BSpvJHa+Wji/TZlEWLDh0Q== X-Received: by 2002:a05:6a20:748a:b0:3bf:b625:5bd0 with SMTP id adf61e73a8af0-3c42929ef6dmr608881637.9.1784656952671; Tue, 21 Jul 2026 11:02:32 -0700 (PDT) Received: from colten.. (61-227-26-231.dynamic-ip.hinet.net. [61.227.26.231]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147e07000fsm2097316eec.21.2026.07.21.11.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 11:02:31 -0700 (PDT) From: Jyun-An Chen To: Kuan-Wei Chiu Cc: Jyun-An Chen , Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org (open list:MIN HEAP), linux-doc@vger.kernel.org (open list:DOCUMENTATION) Subject: [PATCH v2] Documentation/core-api: min_heap: remove undocumented min_heap_empty() Date: Tue, 21 Jul 2026 18:01:26 +0000 Message-ID: <20260721180127.132730-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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 instead of adding unused API surface. Signed-off-by: Jyun-An Chen Acked-by: Kuan-Wei Chiu --- Changes since v1: - Per Kuan-Wei's review, dropped the min_heap_empty()/min_heap_empty_inline= () implementation (unused API with no in-tree callers) and instead just removed the stale documentation for it. - Signed-off-by now uses real name instead of GitHub handle. 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/m= in_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, otherwi= se `false`. =20 **Inline Version:** min_heap_full_inline(heap) =20 -- **min_heap_empty(heap)**: Checks whether the heap is empty. - Complexity: **O(1)**. - -.. code-block:: c - - bool empty =3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 --=20 2.43.0