Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2038777imm; Mon, 16 Jul 2018 00:39:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpftEIOWv6HnUmD60oVkPFNq0QgxeqsWHk3L2p1XETz/0qTKWOnPBEpayS1wj0CZc/iAqSwq X-Received: by 2002:a62:13ca:: with SMTP id 71-v6mr9813936pft.34.1531726767070; Mon, 16 Jul 2018 00:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531726767; cv=none; d=google.com; s=arc-20160816; b=bQgoOK12nsYXKTujJS93HWwQ/bU9iUKddFFrPQYAmXcVpKhvKNxSlmrgxy+UvQFjeq cVvtSeA7eI1eJF9sL2QOVSioT2ixNo6ydYFbIZSdJkKMqg/LDQYz1md+TlSunxzsssbi bOjVZ4+cY9Li8Rp2MbIhdvnWQtessEnSjrm3Z4IF7Sb7kzWHolYrwUJmeFcOkdNEZuk9 TMqPCUyjQnIJJPsuaixLIxaOCo+5RbV3vHWTTRlvj1eJ9mTeJMIPREHxBd6VP2iU4VBO vv2C3JXdQhPj73Oqk+o4phs1VcwyHCItwUiQ5I+XEVbH0am0u2FrpmCIF3z6PLGc1wS4 JZQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xEN3gO8bKj5bySDwK5A/6J5nGDIcfr7BFrqZrlERd2w=; b=sIs4NPDC2eZS5LUDo/xTituN68BvyqGi7YpGUSvCbSm1dFT3pcO9qdAlBsJLFYlV3D 9qYSMb3cJCFo2jAgxq+VUe/vHyclUiBopRKZBDPE4YBaQfdLD71x4ppPArBR0qxssl4I YfBJ+0YbpRh/bJFousESFaToakL6l4JfQ40j3vior18pesE9I6GTV2C+VcEC0IeLYVUz YsoeH5otPI7CEWT2PTdvdWFKo4b8206XRIcZ72FLkwYMkI6UagL+ztTotTsRJEVL6OGQ wcFXZ+apdZrI+PNL49lBbJOqtaMSIbB1MX0nG5u0osUHdLOR2E/CBBE6k3FofCd7Ctny 35NA== ARC-Authentication-Results: i=1; mx.google.com; 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 r6-v6si28956437pgm.647.2018.07.16.00.39.12; Mon, 16 Jul 2018 00:39:27 -0700 (PDT) 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; 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 S1732129AbeGPIEN (ORCPT + 99 others); Mon, 16 Jul 2018 04:04:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46860 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729883AbeGPIEM (ORCPT ); Mon, 16 Jul 2018 04:04:12 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2B3FBCA0; Mon, 16 Jul 2018 07:38:11 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Rasmus Villemoes , Paul Menzel , Masahiro Yamada Subject: [PATCH 4.17 44/67] tools build: fix # escaping in .cmd files for future Make Date: Mon, 16 Jul 2018 09:35:13 +0200 Message-Id: <20180716073450.130547689@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180716073443.294323458@linuxfoundation.org> References: <20180716073443.294323458@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul Menzel commit 9feeb638cde083c737e295c0547f1b4f28e99583 upstream. In 2016 GNU Make made a backwards incompatible change to the way '#' characters were handled in Makefiles when used inside functions or macros: http://git.savannah.gnu.org/cgit/make.git/commit/?id=c6966b323811c37acedff05b57 Due to this change, when attempting to run `make prepare' I get a spurious make syntax error: /home/earnest/linux/tools/objtool/.fixdep.o.cmd:1: *** missing separator. Stop. When inspecting `.fixdep.o.cmd' it includes two lines which use unescaped comment characters at the top: \# cannot find fixdep (/home/earnest/linux/tools/objtool//fixdep) \# using basic dep data This is because `tools/build/Build.include' prints these '\#' characters: printf '\# cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ printf '\# using basic dep data\n\n' >> $(dot-target).cmd; \ This completes commit 9564a8cf422d ("Kbuild: fix # escaping in .cmd files for future Make"). Link: https://bugzilla.kernel.org/show_bug.cgi?id=197847 Cc: Randy Dunlap Cc: Rasmus Villemoes Cc: stable@vger.kernel.org Signed-off-by: Paul Menzel Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- tools/build/Build.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/build/Build.include +++ b/tools/build/Build.include @@ -63,8 +63,8 @@ dep-cmd = $(if $(wildcard $(fixdep)), $(fixdep) $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp; \ rm -f $(depfile); \ mv -f $(dot-target).tmp $(dot-target).cmd, \ - printf '\# cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ - printf '\# using basic dep data\n\n' >> $(dot-target).cmd; \ + printf '$(pound) cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ + printf '$(pound) using basic dep data\n\n' >> $(dot-target).cmd; \ cat $(depfile) >> $(dot-target).cmd; \ printf '\n%s\n' 'cmd_$@ := $(make-cmd)' >> $(dot-target).cmd)