Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1124160imm; Fri, 22 Jun 2018 10:44:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIIE2OqJaFA/RepkpfC6j7Iu1bn8yvEHRBelDQh+oJzi0q9SBdyfZdXTb2iAzdl0c8tI4I0 X-Received: by 2002:a62:d345:: with SMTP id q66-v6mr2752436pfg.158.1529689461769; Fri, 22 Jun 2018 10:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529689461; cv=none; d=google.com; s=arc-20160816; b=M/2NBOWIplRgGI/dErHVMNKmh+2JHDGUaIIJnZkukqAUxikEqdwJg5wi+WP/hUR8yG Lcq8oVEbmv4i4dQ+KGy4b3Ay1/2eqMlSilC1MpIE3DnYVwL70dBWyTzoaM+/7C6X3Z0X Uci0U17Vlrcb4nayURsyeciC6xa6ikvwnWwXbn8p46WvnDgZ9au8GG6pCnchTFQ+4yZS 8Ia7wOWEC16HmsV/e+HG+kEvgBX5Sgmdx03oe1/x/0Q9CcxaEKRw0AMc3kz7fEDp0r1F DTPpJUtt1GOTzcLXm89VIQv62DWvPQYFtdcr6LRx1ce9SL/7y97riuGwhdbMA84QgbFk HYOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=RGlq7n9pW8JF0NwzigVhWYRPxcVrmBYsG1qHL1Tcf5s=; b=CeAv/ZOmUUpjBuifOJMunsYO23yvfRdNHdFGd1rVigyhEXm2YQtYRXNEmRQug+TPpf uffvHEIXdf73UzVzwTZduXP+zxk/AWqtzVmc9xC6vvSpGGsyLJswGMlzH54Msibolfki 4TpTIh0hBx5pZJKfBOURrCSTGfZRMVagXt7/D4VCTr6srkwqs3OvwMXNRGWbNP+2PDNx ZtfPXaS+UtEisB/28mHcWFOwAEEb+RBCuMtQy3skvGCEkNEqGSYS2ePzhrappJJj1wRJ I/KrPbSfd56M0MDeJKMJTjkTcgCTOop75dvolZJH5MGoURrdfmJOuIRrMbmwct+HaF45 DLuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=lAXRtZCs; 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 e200-v6si7943368pfh.64.2018.06.22.10.44.07; Fri, 22 Jun 2018 10:44:21 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=lAXRtZCs; 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 S933890AbeFVRnP (ORCPT + 99 others); Fri, 22 Jun 2018 13:43:15 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:35845 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932973AbeFVRnN (ORCPT ); Fri, 22 Jun 2018 13:43:13 -0400 Received: from mail-ua0-f173.google.com (mail-ua0-f173.google.com [209.85.217.173]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w5MHh7Dl024851; Sat, 23 Jun 2018 02:43:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w5MHh7Dl024851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1529689388; bh=RGlq7n9pW8JF0NwzigVhWYRPxcVrmBYsG1qHL1Tcf5s=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=lAXRtZCswXNimJR+zYgrSMfvs2QcyqB+GptZoWjsboM61fc1YQIMT6kh/KIsEXbL0 enTGfhFtdu4yiOW4uuFft7+NtB4Sy28sKMSRkpXSgkfp/m+2M07MJ7TnBr+I81leXa iFtY6jlycvbycoy1IX4ksyqHtpvowR14CeaCkRJAH4nL2UqvT2ZrsRZp3dKv/BvWBF tZ1TX4zjByYn2FVLN5axCZJzrA5tp/ZkNg7lBP+ZWdaNwwtivbs7uFXhZeNLbBfYOe dtxviEZQVQASakNDB7SIYFWsYo3qFlLrNnIcy+OcxDc91ogYb569jBFfuOPD9yXZtT Y8fp0AadcymEw== X-Nifty-SrcIP: [209.85.217.173] Received: by mail-ua0-f173.google.com with SMTP id x18-v6so4789348uaj.9; Fri, 22 Jun 2018 10:43:08 -0700 (PDT) X-Gm-Message-State: APt69E1YWha/I0rmxiAZPEePUzoTk5oRu2hBh3fBDQ5Jnc8j94IlGWSp zbGR3ehknXwdYFz5yVyWvG4zo7z+oWMFJdxEq6o= X-Received: by 2002:ab0:1048:: with SMTP id g8-v6mr1578635uab.52.1529689387251; Fri, 22 Jun 2018 10:43:07 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Fri, 22 Jun 2018 10:42:26 -0700 (PDT) In-Reply-To: <20180608214746.136554-1-gthelen@google.com> References: <20180608214746.136554-1-gthelen@google.com> From: Masahiro Yamada Date: Sat, 23 Jun 2018 02:42:26 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] trace: fix SKIP_STACK_VALIDATION=1 build To: Greg Thelen Cc: Andi Kleen , Steven Rostedt , Linux Kernel Mailing List , X86 ML , Linux Kbuild mailing list , Andrew Morton , Andi Kleen , Michal Marek 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 2018-06-09 6:47 GMT+09:00 Greg Thelen : > Non gcc-5 builds with CONFIG_STACK_VALIDATION=y and > SKIP_STACK_VALIDATION=1 fail. > Example output: > /bin/sh: init/.tmp_main.o: Permission denied > > commit 96f60dfa5819 ("trace: Use -mcount-record for dynamic ftrace"), > added a mismatched endif. This causes cmd_objtool to get mistakenly > set. > > Relocate endif to balance the newly added -record-mcount check. > > Fixes: 96f60dfa5819 ("trace: Use -mcount-record for dynamic ftrace") > Signed-off-by: Greg Thelen > --- Applied to linux-kbuild/fixes. Thanks! > scripts/Makefile.build | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index 34d9e9ce97c2..e7889f486ca1 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -239,6 +239,7 @@ cmd_record_mcount = \ > "$(CC_FLAGS_FTRACE)" ]; then \ > $(sub_cmd_record_mcount) \ > fi; > +endif # -record-mcount > endif # CONFIG_FTRACE_MCOUNT_RECORD > > ifdef CONFIG_STACK_VALIDATION > @@ -263,7 +264,6 @@ ifneq ($(RETPOLINE_CFLAGS),) > objtool_args += --retpoline > endif > endif > -endif > > > ifdef CONFIG_MODVERSIONS > -- > 2.18.0.rc1.242.g61856ae69a-goog > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada