Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281AbcK0QO7 (ORCPT ); Sun, 27 Nov 2016 11:14:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51682 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbcK0QOu (ORCPT ); Sun, 27 Nov 2016 11:14:50 -0500 Date: Sun, 27 Nov 2016 17:14:47 +0100 From: Jiri Olsa To: Peter Foley Cc: linux-kernel@vger.kernel.org, acme@redhat.com, wangnan0@huawei.com Subject: Re: [PATCH] Fix objtool with clang Message-ID: <20161127161447.GA9347@krava> References: <20161126222035.29816-1-pefoley2@pefoley.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161126222035.29816-1-pefoley2@pefoley.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sun, 27 Nov 2016 16:14:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1419 Lines: 31 On Sat, Nov 26, 2016 at 05:20:35PM -0500, Peter Foley wrote: > Clang doesn't support multiple arguments being passed to -Wp, so split > them. > > Fixes this error: > HOSTCC tools/objtool/fixdep.o > cat: tools/objtool/.fixdep.o.d: No such file or directory > > Signed-off-by: Peter Foley > --- > tools/build/Build.include | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/build/Build.include b/tools/build/Build.include > index 1dcb95e76f70..83c7be908009 100644 > --- a/tools/build/Build.include > +++ b/tools/build/Build.include > @@ -89,10 +89,10 @@ if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ > # - per target C flags > # - per object C flags > # - BUILD_STR macro to allow '-D"$(variable)"' constructs > -c_flags = -Wp,-MD,$(depfile),-MT,$@ $(CFLAGS) -D"BUILD_STR(s)=\#s" $(CFLAGS_$(basetarget).o) $(CFLAGS_$(obj)) > -cxx_flags = -Wp,-MD,$(depfile),-MT,$@ $(CXXFLAGS) -D"BUILD_STR(s)=\#s" $(CXXFLAGS_$(basetarget).o) $(CXXFLAGS_$(obj)) > +c_flags = -Wp,-MD,$(depfile) -Wp,-MT,$@ $(CFLAGS) -D"BUILD_STR(s)=\#s" $(CFLAGS_$(basetarget).o) $(CFLAGS_$(obj)) > +cxx_flags = -Wp,-MD,$(depfile) -Wp,-MT,$@ $(CXXFLAGS) -D"BUILD_STR(s)=\#s" $(CXXFLAGS_$(basetarget).o) $(CXXFLAGS_$(obj)) could you please rebase this on Arnaldo's latest perf/core branch? (git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git) thanks, jirka