Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2337555ybz; Thu, 23 Apr 2020 16:17:06 -0700 (PDT) X-Google-Smtp-Source: APiQypISQBZpHPGu8ghWvrlkF+yWu2/iAkXkvg0yKBC50fGF9UzRAZv3AZ65KqYSAK68v5dphS70 X-Received: by 2002:a50:c28a:: with SMTP id o10mr4933972edf.85.1587683826566; Thu, 23 Apr 2020 16:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587683826; cv=none; d=google.com; s=arc-20160816; b=vFfk0SNO/4Uznu6TXE51Zq8SD8Tg7hghKvNDdSJ/dVr7S9VdfwTTWfsy/4Ev+My3N0 1tm/VJujOgwGCkOmbns28JSHePTyZSm8bU53EEG5YazD/RkSY5h5ACmphq+sElOLZoll Wkdy6LQghoBI2gkYWXbmpnqBAD9VE+EhHNe8rZ6VfwlBwP6JOrhWsLwofIcWQs1OeyTS lo4k6kOv/2dItXyQr0sRNI6GlpSmO6/dyZq4MlOiTs0V5AS7nedE/QwJINIgVvyYpm6d o3i+OGVhGIZ06hixL1wSgrFApGh+6yqRaT0N2+TnKGJCqlTx7y5sE0d/nLPwLedbI5gx ZT2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=7qmSeZh+ZAPqELLZaATOQz5/waA0cIQpFGvs5xVoShU=; b=SlPWrz5d0ETcJaHyTok6kvvjdz/BLeuY4bdVTNutJxHNl4ePMBCVqqQYnmzu45JLKI Z9N3xb6C6ZO3CLVkDM0U5uC0cFH5c4Nn4vl3aC5Po9J/TwzSR9oan+BDqB5Ozi0HQGg6 Z9ciHeJEfMZ6XggtzC3nIV643RCXNFbk7bXE+lctwzDWETf+JgE0tRSiI5qUtRvoZ47t f+cTJHIW8bcI8BlXZg96U7oVsX/Vr72sVrBI4OimMIh5xSKZf//PxbTOkveY8YDQxeHP I1IxqtD+wt3pY92rmfpEvSE+XGtvW+T64xQH6Ghh+k7AjFCUtitdNKjhap1BPWzblPs/ qrUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si1948451edm.269.2020.04.23.16.16.43; Thu, 23 Apr 2020 16:17:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729484AbgDWXOV (ORCPT + 99 others); Thu, 23 Apr 2020 19:14:21 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49870 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728054AbgDWXGt (ORCPT ); Thu, 23 Apr 2020 19:06:49 -0400 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jRkvT-0004hn-D4; Fri, 24 Apr 2020 00:06:35 +0100 Received: from ben by deadeye with local (Exim 4.93) (envelope-from ) id 1jRkvS-00E6rL-Gh; Fri, 24 Apr 2020 00:06:34 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Steven Rostedt (VMware)" , "kbuild test robot" Date: Fri, 24 Apr 2020 00:06:20 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 153/245] tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.83-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: "Steven Rostedt (VMware)" commit b8299d362d0837ae39e87e9019ebe6b736e0f035 upstream. On some archs with some configurations, MCOUNT_INSN_SIZE is not defined, and this makes the stack tracer fail to compile. Just define it to zero in this case. Link: https://lore.kernel.org/r/202001020219.zvE3vsty%lkp@intel.com Fixes: 4df297129f622 ("tracing: Remove most or all of stack tracer stack size from stack_max_size") Reported-by: kbuild test robot Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Ben Hutchings --- kernel/trace/trace_stack.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/kernel/trace/trace_stack.c +++ b/kernel/trace/trace_stack.c @@ -182,6 +182,11 @@ check_stack(unsigned long ip, unsigned l local_irq_restore(flags); } +/* Some archs may not define MCOUNT_INSN_SIZE */ +#ifndef MCOUNT_INSN_SIZE +# define MCOUNT_INSN_SIZE 0 +#endif + static void stack_trace_call(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct pt_regs *pt_regs)