Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1357121imm; Fri, 8 Jun 2018 14:48:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKagTG/UDhAStELNqOn+a4kseUmmDBtPtFBAC9sLigaGdT9hBdqMK7ozzz4S0309SjrD0jt X-Received: by 2002:a62:4141:: with SMTP id o62-v6mr7621383pfa.111.1528494509498; Fri, 08 Jun 2018 14:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528494509; cv=none; d=google.com; s=arc-20160816; b=IMSXBJDuAm/4HRGM20bBsQ2TgMT5bkgjAwwB1p5Zh68oirg9fqvlBqy6ex3p8utzWS mnP29KzYXV1KdFT27LOzNdHHRZGECW9KSSPvmsShzEdkIFvUcFdNFMba6Mrq75onMhFL XUzxuSfhtjMSSciA+PvjX8Fzp/5Yp55Jmv/G+FtEWutGWo/dTxEcOebDHVqOW0y6/pqD XbIWetCVtrJyg4dlays7DUaIU7sSpKxrqqp2XHZkQF8A9JIwY77GWJCLyiXjjGDQlVn3 JnDo7iiKuCJY0OPpddmNJdFsx41iDio5+vdb7pFHwc+pHWmwltmK/g80Ihm8Ulg7k3MC IwFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:message-id:date :mime-version:dkim-signature:arc-authentication-results; bh=G9MTq4awSsB86JSx1LFZR7GxenXD68YGNE1DhM/fISA=; b=mdUej0wWCzQ/0Ado7BNa9XxF/XW0qe5RCUL5Tbgmk/pUzyQ+GCdLps55I00v9kSJ5r NrBrL8aAKgGJUSzeqd/wmw0rgSnOL73ZOCevNN6Wd6+Uem8uWCq2wLfaQzgtl7OcOwJo NPUDDzYqZH80muz6MrN+ObmSjO65g5iOOs5zb7IpP0IAJxnwbMN/TvOVPjflJ7rFa62d QXQgEuoYMbwNgpW2Pxgcc0UbRdJ9h+YuYnYVnQBRDmtT+gl9E9lUuw8K56V1+iL27egE JUUBl29/GkQ1IiKIDGf01NERbOf0oA8S6ELGP1oeVsqut6jTpwU70UsOEJf1uxiLHop4 O88w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cK62uaBt; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si46547055pgo.679.2018.06.08.14.48.14; Fri, 08 Jun 2018 14:48:29 -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=@google.com header.s=20161025 header.b=cK62uaBt; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753289AbeFHVry (ORCPT + 99 others); Fri, 8 Jun 2018 17:47:54 -0400 Received: from mail-it0-f74.google.com ([209.85.214.74]:39976 "EHLO mail-it0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753239AbeFHVrw (ORCPT ); Fri, 8 Jun 2018 17:47:52 -0400 Received: by mail-it0-f74.google.com with SMTP id r7-v6so2934570ith.5 for ; Fri, 08 Jun 2018 14:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:message-id:subject:from:to:cc; bh=G9MTq4awSsB86JSx1LFZR7GxenXD68YGNE1DhM/fISA=; b=cK62uaBtT1vZF/Bd7NQMhorM3o6FGHrUGeiLblZzQj/5cMDmyrgSt0xj6m+noppRkS IQJgR0uu6ttJRhooZcvNBt2MEinZ0UBLcxyl6GDq5De3Jw+MXMqfQjbScROoRvl9tWZx tyGoVCX1y9Wj74TLBr44uvEsn9YAdRp6RMhdXqBgEnX0JT+hKF+trkBUifp7+bVW4noc 7je28MODtjFwdOHT1gmrLEMmmTzFAnQ1F1zHFn8pZFGxB5N2slTsvWPaQDWXjEh+EBYD UOb6ZlyLd+HhadD7JtNlawhO3QPSMUDC81d2tUOhBlcjWvhzXWRN34V4YLJZwsCE3zOJ qqIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=G9MTq4awSsB86JSx1LFZR7GxenXD68YGNE1DhM/fISA=; b=QaYBH/cg5KVXfQyua8gmPhay9981zD1ih2N4CeBTv/P9uYHMMdHx8FmbhSrel0pQT4 0YcM3SJNDTKWTvHNF9OAKqWcix2chqghya9KsvzUgSWThfb+CJft5iL5Z+fhTevEQEUe WDqfn16sAX1GmgM5Fy07vGN5yH9O8rt+w25j/2HfzvScYivQtSXanOcMyqVBXMghHHBv uy5X43hDppTtfBoKW4jULHGDeWNNijtn6VEGXLt0mca0mTmLuOiieozXyh1QOvuL7QP5 s9cZ6K7WKLcpwIfmuJJb1ZNRckpYy/v+49jubZ2Fo+fIEgstmZ1boCjxEyoBgiUTf87V Mn5w== X-Gm-Message-State: APt69E1K9zha0t/ZvxaAe7fBGxh/cN6YSySlOaG8ksbDuG6TeyCzQp1P S6yNwWmNLS+KyCF+XkfXwJHJx0Ljo2gO MIME-Version: 1.0 X-Received: by 2002:a24:568a:: with SMTP id o132-v6mr3800793itb.5.1528494471746; Fri, 08 Jun 2018 14:47:51 -0700 (PDT) Date: Fri, 8 Jun 2018 14:47:46 -0700 Message-Id: <20180608214746.136554-1-gthelen@google.com> X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a-goog Subject: [PATCH] trace: fix SKIP_STACK_VALIDATION=1 build From: Greg Thelen To: Andi Kleen , Steven Rostedt Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-kbuild@vger.kernel.org, akpm@linux-foundation.org, Andi Kleen , Masahiro Yamada , Michal Marek , Greg Thelen 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 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 --- 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