Skip to content

Commit fab546e

Browse files
committed
kbuild: update comments in scripts/Makefile.modpost
The comment line "When building external modules ..." explains the same thing as "Include the module's Makefile ..." a few lines below. The comment "they may be used when building the .mod.c file" is no longer true; .mod.c file is compiled in scripts/Makefile.modfinal since commit 9b9a3f2 ("kbuild: split final module linking out into Makefile.modfinal"). I still keep the code in case $(obj) or $(src) is used in the external module Makefile. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 521b29b commit fab546e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎scripts/Makefile.modpost‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ __modpost:
6767

6868
else
6969

70-
# When building external modules load the Kbuild file to retrieve EXTRA_SYMBOLS info
7170
ifneq ($(KBUILD_EXTMOD),)
7271

73-
# set src + obj - they may be used when building the .mod.c file
72+
# set src + obj - they may be used in the modules's Makefile
7473
obj := $(KBUILD_EXTMOD)
7574
src := $(obj)
7675

0 commit comments

Comments
 (0)