From nobody Tue Feb 10 09:22:19 2026 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 153B430C34E for ; Mon, 9 Feb 2026 08:53:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770627215; cv=none; b=QVPG+alk24sgLWb6i4dydxdKhZb/o9PoHeHHxIeMHEFRJIeTHI1x+JJhPUkq1Xlc2H93SpC6mwVKFXWgh42shf6HoHKpIjzV6TlhZ0tFHFbhuXWucP8YWltd4iMdJM+yFbGi6T74uASt/ND4V804Jzj/UyoVCysAbtsfKUJGPn8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770627215; c=relaxed/simple; bh=I7RussHr7jIE+YwhryDgvUp6nHg/qg7le2TgdwLgn/Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=td32vbWArupDhdPMnCQGWbDpo5WK6AcqodL9svC9VsdNsg/E4XJ9FtZLFTrp97EIzQmO8timzjq+UVe75rUGiW5jOpeWHsYInLlnFZC2m9H2wH3TD8Egw3qRc1tNrF8Oy7uENKKHOBsBvRcLd5pVNt6sIp6pZIOEExkdgNcchGI= 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=FKaIII4R; arc=none smtp.client-ip=209.85.216.54 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="FKaIII4R" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-354c19bf64bso1003431a91.1 for ; Mon, 09 Feb 2026 00:53:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770627214; x=1771232014; 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; bh=GObI56Pf/Z0BmT1HYGW/jC0+YM2QQRZ0TQHkYLyVIds=; b=FKaIII4RKDO7YJfSaNdiUvJP2pH4Zjk/AjbJEaGegZ2jjEzJGHCG8/qAz8tOr5m/pN lTBdBFx8fpkDiEb0ohh6BXpsC6hqBmA4oMnz6aZ2fRL5ogcbh9poDHbdAtX4nq/yVylP XiJs/nctJC1VCfyMpSZ49TGcw8jpaH1p5lTc4cKR7YIs6mNA7skX+wXCeTmTwgDNQpbz SG4wEElVQ9yY2S5dDqZA7+I49fc33KRR9mgxtMS9ecs2Xg6s3kjlgQZURxJ4fJKnDTVL 6Vl886DFDPYr31GHOyuMQwDWT6iJ2fe6ZJRe2piNWJ97rF+uOl+HMp7leHx8XC1rqdVZ aKfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770627214; x=1771232014; 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; bh=GObI56Pf/Z0BmT1HYGW/jC0+YM2QQRZ0TQHkYLyVIds=; b=Dh+qbWu+YecoHImpQqVQCterRhTkQJwsTF/uowJ/psw8n3winW4uOgvEXZv8XJZh9N ELjR+rh8Nc22aKpWAvCwemfbc2jW26IuogwaJkSeUiUuR8vMo6oyc7qPEmX9itTKX5nr tk85rRYTus3QeJal7Rim4tDRtGHIowyI9fW2qXvzOGWoc5e2izgYmtQvOf9mV+/8hwKm f2tuuv/WS1t2Acc01oZJijYY1JfZtldoMsAgzWw1xcFsx/DpysGultMivJ0s+YHRvmMO FopbJm4uyxRrQ3Z1ECKRHF8Fz8XYImmTuq7R6SnmhJeF38vPRPiegnolQ96SUUx3JSaC q9Dw== X-Gm-Message-State: AOJu0YxygtOAs4hj3jg7A1eCqKPNDNcA+PRVnlGGQCrrZy+BVHos3pWP h2Kq5Zreler82dS7IWeZlgBAHsECigjijYd+uvsBqjL0Zc8Zl6s3iJRQ X-Gm-Gg: AZuq6aKJqRBQUiQ3G5rNKPD0UzPgkSahdiYGLR1IOr39Irrrcvl/leK4a+mad4Z9YxY ISBPianWgsX8+0mgD48x9VSrBAnpr+efElzM6+Brz6H5wcCPdH7tnW2hV8F/kIJgKixY8B3mKVW L/KZhiACMY5yhamM8RZSySJOE+OYIIAz6q5hy6pD2gcW/PFIbm1yRzYgE22ikCC+hjDKjw1fJAG FgO+RlzJ3hj0G2HCH8KRtReu41wBJlfxQL1Cm0C3GCDF+CrVmSoJjGNSi3RlUAZNzZQ8HZTeFud 3jU3mlLBYqfw4Tk0ArcwM5kNOlbF2XUbKBmuG5o00sJZFikGp9mDWoCui8Vw97z9ODRYyjvgwtL mSB6Hw51RWgqwcNvcLDNtV2inldg2b0dBDTSkwljBWYAT53JrUWxA7HmoeIyeP0TSa5wRr+FmD4 gNNt9KmVbNEVQ7r7dhxBZU8hcYv2aoPCxBgVhRrwLoMliyp/rEDQ8fXTUKzC6vz0cU+bSmJDWHc Q== X-Received: by 2002:a17:90b:50cb:b0:340:29a3:800f with SMTP id 98e67ed59e1d1-3549bc1482emr12444643a91.15.1770627214312; Mon, 09 Feb 2026 00:53:34 -0800 (PST) Received: from localhost.localdomain (123-194-188-82.dynamic.kbronet.com.tw. [123.194.188.82]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3549c392608sm16061098a91.15.2026.02.09.00.53.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Feb 2026 00:53:33 -0800 (PST) From: Min-Hsun Chang To: visitorckw@gmail.com, corbet@lwn.net Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Min-Hsun Chang Subject: [PATCH] lib/min_heap: fix spelling and grammatical errors Date: Mon, 9 Feb 2026 16:52:50 +0800 Message-ID: <20260209085250.75237-1-chmh0624@gmail.com> X-Mailer: git-send-email 2.50.1 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" The Min Heap API documentation and header file contain a few minor spelling and grammatical mistakes. Fix the following: - Add a missing period at the end of a sentence in min_heap.rst. - Change "customise" to "customize" in min_heap.h for consistency with the documentation. - Change "on to" to "onto" in the description of min_heap_push. These changes improve the readability of the API and documentation. Signed-off-by: Min-Hsun Chang --- Documentation/core-api/min_heap.rst | 2 +- include/linux/min_heap.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/core-api/min_heap.rst b/Documentation/core-api/m= in_heap.rst index 9f57766581df..62439be2cdf6 100644 --- a/Documentation/core-api/min_heap.rst +++ b/Documentation/core-api/min_heap.rst @@ -75,7 +75,7 @@ elements in the heap and swapping them. It contains two f= unction pointers: =20 - **less** is the comparison function used to establish the order of eleme= nts. - **swp** is a function for swapping elements in the heap. If swp is set to - NULL, the default swap function will be used, which swaps the elements b= ased on their size + NULL, the default swap function will be used, which swaps the elements b= ased on their size. =20 Macro Wrappers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff --git a/include/linux/min_heap.h b/include/linux/min_heap.h index 79ddc0adbf2b..cb1cc0c0e8bd 100644 --- a/include/linux/min_heap.h +++ b/include/linux/min_heap.h @@ -40,7 +40,7 @@ typedef DEFINE_MIN_HEAP(char, min_heap_char) min_heap_cha= r; #define __minheap_obj_size(_heap) sizeof((_heap)->data[0]) =20 /** - * struct min_heap_callbacks - Data/functions to customise the min_heap. + * struct min_heap_callbacks - Data/functions to customize the min_heap. * @less: Partial order function for this heap. * @swp: Swap elements function. */ @@ -373,7 +373,7 @@ void __min_heap_pop_push_inline(min_heap_char *heap, co= nst void *element, size_t __min_heap_pop_push_inline(container_of(&(_heap)->nr, min_heap_char, nr),= _element, \ __minheap_obj_size(_heap), _func, _args) =20 -/* Push an element on to the heap, O(log2(nr)). */ +/* Push an element onto the heap, O(log2(nr)). */ static __always_inline bool __min_heap_push_inline(min_heap_char *heap, const void *element, size= _t elem_size, const struct min_heap_callbacks *func, void *args) --=20 2.50.1