Skip to contentSkip to conversation

lib-list_sort-remove-unnecessary-header-includes.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Nov 6, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib/list_sort: remove unnecessary header includes
has been removed from the -mm tree. Its filename was
lib-list_sort-remove-unnecessary-header-includes.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Kuan-Wei Chiu <[email protected]>
Subject: lib/list_sort: remove unnecessary header includes
Date: Sat, 12 Oct 2024 12:28:26 +0800

Patch series "Remove unnecessary header includes from {tools/}lib/list_sort.c".

Remove outdated and unnecessary header includes from lib/list_sort.c and tools/lib/list_sort.c. Additionally, update the hunk exceptions checked by check_headers.sh to reflect these changes.

This patch (of 3):

After commit 043b3f7b6388 ("lib/list_sort: simplify and remove MAX_LIST_LENGTH_BITS"), list_sort.c no longer uses ARRAY_SIZE() (which required kernel.h and bug.h for BUILD_BUG_ON_ZERO via __must_be_array) or memset() (which required string.h). As these headers are no longer needed, removes them.

There are no changes to the generated code, as confirmed by 'objdump -d'. Additionally, 'wc -l' shows that the size of lib/.list_sort.o.cmd is reduced from 259 lines to 101 lines.

---

 lib/list_sort.c |    3 ---
 1 file changed, 3 deletions(-)
lib/list_sort.c renamed from lib/list_sort.c~lib-list_sort-remove-unnecessary-header-includes +0 -3
@@ -1,9 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
-#include <linux/kernel.h>
-#include <linux/bug.h>
 #include <linux/compiler.h>
 #include <linux/export.h>
-#include <linux/string.h>
 #include <linux/list_sort.h>
 #include <linux/list.h>
 

_

Patches currently in -mm which might be from [email protected] are