From patchwork Thu Nov 15 08:27:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 151204 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6713982ljp; Thu, 15 Nov 2018 00:28:39 -0800 (PST) X-Google-Smtp-Source: AJdET5dMVhgYwxh6syoEMoNzcybwtTr3kZVM++lSzB3jnq612pR3Z7YU5ZxjKjnbJ+eSgwEAwUoc X-Received: by 2002:a62:5dd1:: with SMTP id n78mr5408597pfj.58.1542270518936; Thu, 15 Nov 2018 00:28:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542270518; cv=none; d=google.com; s=arc-20160816; b=W1oEq3iPRUmUNLOIt9j2n2moh86I48i3vCvUNbnmWR64HZikJJh91b0npWfPYwZ3To Nat/7hjrdHDfA62EqHVaI98LZJlrA+fHlKAF0J2olOnLmqAfictPmouysZR3J+4tgrMM te9xv5D9pD2WG7NnUm+LYiW78Z3bgVr+OSPd0Fn2cPvz9y7J4XNn7gN3Rjv7qFxB0RgS ZncFb9wEWZgkH+hYXsvNJX4Fqt7VqMFjEUWl5yXBbMioL8Lapgero0k7YHDZn4B4Kj/c 7coZnhFfWAJqKUPwIxVLg4TlOCx8V+dY9XUgiAYoxuXb7o/pTxhPoFAVC5J/u1E/31jm fFNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=o1GWGIaipR/X6q6oCdm15fafbmJ3OCU4vDv1Nw3MR5k=; b=FyB4pH+af2F3tWtyKrqVQBkfwqejDTXgwhToLUgjHEitp/kIu6Kz3GorYknsqfCnk/ PpZhY8K3YUjVhpyHbuZ5MV6pfxH6iTMXNwIXWx9nTzLIivpJBFmu0H8ABLVX/txf7kGu e8TI6H9a+VStdQa/yDFFLepn26iwp9848KSA844CQDL/XfvhhMSvfxr8ccv42XitPKLz qBr3Y2ncDIZaJFjunaL0+aMjjIQF41RyBm1CeRC97TZxHDal8AfCc6mua1FrIRo9W979 4nL71nNj0/+k6u54yYkRAavypwPwmYJDM/Cd1waNfoTvYGft9ZHORI28Z/OrLGXWyWAS RtHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VDKyVGxd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si26637014pga.328.2018.11.15.00.28.38; Thu, 15 Nov 2018 00:28:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VDKyVGxd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729097AbeKOSf0 (ORCPT + 32 others); Thu, 15 Nov 2018 13:35:26 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:50702 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728519AbeKOSfY (ORCPT ); Thu, 15 Nov 2018 13:35:24 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id wAF8RHod022794; Thu, 15 Nov 2018 17:27:23 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wAF8RHod022794 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1542270443; bh=o1GWGIaipR/X6q6oCdm15fafbmJ3OCU4vDv1Nw3MR5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VDKyVGxdLyw9eym5gQaPCvZTugbjMOXG4XeNgDYiFQjR4lrROBUvlhfwUHAymFKwu qI/uYoxSKnceoGrLsbi2raUr3pSwQzfjtWbFOVC620ytnZNTvDReuewJsZlVS7BXni WJari73F6Mr3xOEcHfSC7XDwmibmnJwSlmW4qp5TWiOkoKyWNNpJ/IIXp3tlRWv4Ab SqhjjiqS7aP51Gkbwb6ZeM4xpEaYY9/2y7zzlp7EdC2TFq3VrGKainvvuyoKyP27qR KCUIlNaxCB8IdYG9YcRbmFAcrDUTOsU9tlH2cTJ0Iq93Sv4odw5PgLoPvh4mAsNlGI K+HYGu3opazHA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Nicolas Pitre , Rasmus Villemoes , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 6/8] kbuild: remove trailing semicolon from cmd_* passed to if_changed_rule Date: Thu, 15 Nov 2018 17:27:13 +0900 Message-Id: <1542270435-11181-7-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542270435-11181-1-git-send-email-yamada.masahiro@socionext.com> References: <1542270435-11181-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All commands passed into rule_cc_o_c / rule_as_o_S needed to end with a semicolon because the old if_changed_rule implementation only accepted a single shell command. To pass in multiple shell commands, they must be concatenated with '; \'. With the if_changed_rule change in the last commit, this restriction does not exist any more. Rip off unneeded semicolons. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 5528a6a..78e647f 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -75,14 +75,14 @@ __build: $(if $(KBUILD_BUILTIN),$(builtin-target) $(lib-target) $(extra-y)) \ # Linus' kernel sanity checking tool ifeq ($(KBUILD_CHECKSRC),1) quiet_cmd_checksrc = CHECK $< - cmd_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ; + cmd_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< else ifeq ($(KBUILD_CHECKSRC),2) quiet_cmd_force_checksrc = CHECK $< - cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ; + cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< endif ifneq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),) - cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $< ; + cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $< endif # Do section mismatch analysis for each module/built-in.a @@ -178,7 +178,7 @@ cmd_modversions_c = \ -T $(@D)/.tmp_$(@F:.o=.ver); \ mv -f $(@D)/.tmp_$(@F) $@; \ rm -f $(@D)/.tmp_$(@F:.o=.ver); \ - fi; + fi endif ifdef CONFIG_FTRACE_MCOUNT_RECORD @@ -211,7 +211,7 @@ cmd_record_mcount = \ if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \ "$(CC_FLAGS_FTRACE)" ]; then \ $(sub_cmd_record_mcount) \ - fi; + fi endif # CC_USING_RECORD_MCOUNT endif # CONFIG_FTRACE_MCOUNT_RECORD @@ -241,7 +241,7 @@ endif # 'OBJECT_FILES_NON_STANDARD_foo.o := 'n': override directory skip for a file cmd_objtool = $(if $(patsubst y%,, \ $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ - $(__objtool_obj) $(objtool_args) $@;) + $(__objtool_obj) $(objtool_args) $@) objtool_obj = $(if $(patsubst y%,, \ $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ $(__objtool_obj)) @@ -258,7 +258,7 @@ ifdef CONFIG_TRIM_UNUSED_KSYMS cmd_gen_ksymdeps = \ $(CONFIG_SHELL) $(srctree)/scripts/gen_ksymdeps.sh $@ > $(dot-target).tmp; \ cat $(dot-target).tmp >> $(dot-target).cmd; \ - rm -f $(dot-target).tmp; + rm -f $(dot-target).tmp endif @@ -375,7 +375,7 @@ cmd_modversions_S = \ -T $(@D)/.tmp_$(@F:.o=.ver); \ mv -f $(@D)/.tmp_$(@F) $@; \ rm -f $(@D)/.tmp_$(@F:.o=.ver); \ - fi; + fi endif endif