Re: [PATCH] kbuild: fix typos "prequisites" to "prerequisites"

From: Nathan Chancellor
Date: Tue Aug 20 2024 - 17:50:30 EST


On Sun, Aug 18, 2024 at 04:07:11PM +0900, Masahiro Yamada wrote:
> This typo in scripts/Makefile.build has been present for more than 20
> years. It was accidentally copy-pasted to other scripts/Makefile.* files.
> Fix them all.
>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>

Ha, cute, good catch!

Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>

> ---
>
> scripts/Makefile.build | 2 +-
> scripts/Makefile.modfinal | 2 +-
> scripts/Makefile.vmlinux | 2 +-
> scripts/Makefile.vmlinux_o | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/scripts/Makefile.build b/scripts/Makefile.build
> index efacca63c897..a5ac8ed1936f 100644
> --- a/scripts/Makefile.build
> +++ b/scripts/Makefile.build
> @@ -487,7 +487,7 @@ $(subdir-ym):
> need-modorder=$(if $(filter $@/modules.order, $(subdir-modorder)),1) \
> $(filter $@/%, $(single-subdir-goals))
>
> -# Add FORCE to the prequisites of a target to force it to be always rebuilt.
> +# Add FORCE to the prerequisites of a target to force it to be always rebuilt.
> # ---------------------------------------------------------------------------
>
> PHONY += FORCE
> diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal
> index 1fa98b5e952b..306a6bb86e4d 100644
> --- a/scripts/Makefile.modfinal
> +++ b/scripts/Makefile.modfinal
> @@ -62,7 +62,7 @@ endif
>
> targets += $(modules:%.o=%.ko) $(modules:%.o=%.mod.o)
>
> -# Add FORCE to the prequisites of a target to force it to be always rebuilt.
> +# Add FORCE to the prerequisites of a target to force it to be always rebuilt.
> # ---------------------------------------------------------------------------
>
> PHONY += FORCE
> diff --git a/scripts/Makefile.vmlinux b/scripts/Makefile.vmlinux
> index 49946cb96844..5ceecbed31eb 100644
> --- a/scripts/Makefile.vmlinux
> +++ b/scripts/Makefile.vmlinux
> @@ -33,7 +33,7 @@ targets += vmlinux
> vmlinux: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE
> +$(call if_changed_dep,link_vmlinux)
>
> -# Add FORCE to the prequisites of a target to force it to be always rebuilt.
> +# Add FORCE to the prerequisites of a target to force it to be always rebuilt.
> # ---------------------------------------------------------------------------
>
> PHONY += FORCE
> diff --git a/scripts/Makefile.vmlinux_o b/scripts/Makefile.vmlinux_o
> index 6de297916ce6..d64070b6b4bc 100644
> --- a/scripts/Makefile.vmlinux_o
> +++ b/scripts/Makefile.vmlinux_o
> @@ -87,7 +87,7 @@ targets += modules.builtin
> modules.builtin: modules.builtin.modinfo FORCE
> $(call if_changed,modules_builtin)
>
> -# Add FORCE to the prequisites of a target to force it to be always rebuilt.
> +# Add FORCE to the prerequisites of a target to force it to be always rebuilt.
> # ---------------------------------------------------------------------------
>
> PHONY += FORCE
> --
> 2.43.0
>