* [PATCH] lib/test_min_heap: fix incorrect module description
@ 2026-01-19 11:34 Nick Huang
2026-01-19 13:26 ` Kuan-Wei Chiu
0 siblings, 1 reply; 4+ messages in thread
From: Nick Huang @ 2026-01-19 11:34 UTC (permalink / raw)
To: Kuan-Wei Chiu, Andrew Morton
Cc: kusogame68, paladin, n1136402, linux-kernel, Nick Huang
The module description incorrectly mentions "min max heap", but the
test module is specifically designed for testing the min heap
implementation. Correct the metadata to match the code.
Signed-off-by: Nick Huang <sef1548@gmail.com>
---
lib/test_min_heap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/test_min_heap.c b/lib/test_min_heap.c
index a9c4a74d3..9e42a805b 100644
--- a/lib/test_min_heap.c
+++ b/lib/test_min_heap.c
@@ -218,5 +218,5 @@ static void __exit test_min_heap_exit(void)
}
module_exit(test_min_heap_exit);
-MODULE_DESCRIPTION("Test cases for the min max heap");
+MODULE_DESCRIPTION("Test cases for the min heap");
MODULE_LICENSE("GPL");
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] lib/test_min_heap: fix incorrect module description
2026-01-19 11:34 [PATCH] lib/test_min_heap: fix incorrect module description Nick Huang
@ 2026-01-19 13:26 ` Kuan-Wei Chiu
[not found] ` <CABZAGRFuq7h=-Z0wYfasLV4a1nY_iaNtJHN9W3PpeJc6=OP3Qw@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Kuan-Wei Chiu @ 2026-01-19 13:26 UTC (permalink / raw)
To: Nick Huang; +Cc: Andrew Morton, kusogame68, paladin, n1136402, linux-kernel
Hi Nick,
On Mon, Jan 19, 2026 at 11:34:20AM +0000, Nick Huang wrote:
> The module description incorrectly mentions "min max heap", but the
> test module is specifically designed for testing the min heap
> implementation. Correct the metadata to match the code.
Thanks for the patch, but I don't think this change is necessary.
As noted in commit 6e24628d78e4 ("lib: Introduce generic min-heap"),
the implementation easily supports a max heap by simply inverting
the comparison function.
Since this module explicitly tests both min heap and max heap
scenarios, the current description accurately reflects the test
coverage.
Regards,
Kuan-Wei
>
> Signed-off-by: Nick Huang <sef1548@gmail.com>
> ---
> lib/test_min_heap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/test_min_heap.c b/lib/test_min_heap.c
> index a9c4a74d3..9e42a805b 100644
> --- a/lib/test_min_heap.c
> +++ b/lib/test_min_heap.c
> @@ -218,5 +218,5 @@ static void __exit test_min_heap_exit(void)
> }
> module_exit(test_min_heap_exit);
>
> -MODULE_DESCRIPTION("Test cases for the min max heap");
> +MODULE_DESCRIPTION("Test cases for the min heap");
> MODULE_LICENSE("GPL");
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-20 3:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 11:34 [PATCH] lib/test_min_heap: fix incorrect module description Nick Huang
2026-01-19 13:26 ` Kuan-Wei Chiu
[not found] ` <CABZAGRFuq7h=-Z0wYfasLV4a1nY_iaNtJHN9W3PpeJc6=OP3Qw@mail.gmail.com>
2026-01-19 14:06 ` Kuan-Wei Chiu
2026-01-20 3:11 ` Nick Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox