Skip to content

Commit a5db80c

Browse files
committed
kbuild: do not sort after reading modules.order
modules.order lists modules in the deterministic order (that is why "modules order"), and there is no duplication in the list. $(sort ) is pointless. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent fccb3d3 commit a5db80c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/Makefile.modfinal

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include $(srctree)/scripts/Kbuild.include
1313
include $(srctree)/scripts/Makefile.lib
1414

1515
# find all modules listed in modules.order
16-
modules := $(sort $(shell cat $(MODORDER)))
16+
modules := $(shell cat $(MODORDER))
1717

1818
__modfinal: $(modules)
1919
@:

scripts/Makefile.modinst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ __modinst:
99
include include/config/auto.conf
1010
include $(srctree)/scripts/Kbuild.include
1111

12-
modules := $(sort $(shell cat $(MODORDER)))
12+
modules := $(shell cat $(MODORDER))
1313

1414
ifeq ($(KBUILD_EXTMOD),)
1515
dst := $(MODLIB)/kernel

0 commit comments

Comments
 (0)