kbuild: replace $(if A,A,B) with $(or A,B) in scripts/Makefile.modpost
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 23 May 2022 18:15:03 +0000 (03:15 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 27 May 2022 07:17:43 +0000 (16:17 +0900)
Similar cleanup to commit 5c8166419acf ("kbuild: replace $(if A,A,B)
with $(or A,B)").

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/Makefile.modpost

index 0273bf7..8b34348 100644 (file)
@@ -87,7 +87,7 @@ obj := $(KBUILD_EXTMOD)
 src := $(obj)
 
 # Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS
-include $(if $(wildcard $(src)/Kbuild), $(src)/Kbuild, $(src)/Makefile)
+include $(or $(wildcard $(src)/Kbuild), $(src)/Makefile)
 
 # modpost option for external modules
 MODPOST += -e