Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp669108ybg; Mon, 1 Jun 2020 11:13:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwakseDfB7x9MixFSARSEpMhMgjKwk26H9q1Zg1ocXwn45MSa3Ofdpy/2faUdyMYSJXw6Uv X-Received: by 2002:aa7:cc0e:: with SMTP id q14mr23700114edt.64.1591035220384; Mon, 01 Jun 2020 11:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591035220; cv=none; d=google.com; s=arc-20160816; b=EcnGoEqxDwnaHAAygrtY0yJk6BMQD70hlw+KsuvJ/fKPjBhJytW5td6Ol/9bTZkdec gLL4QckrRkQi0/ez4acXhKDeSY5tKFUTmYbohNTsMwp6xiBhfvwFCWQe8/5dtSX9s/kX EMDRj5Xtu7nAHPHYrFSR7smaYq7OrZQUxHS2As4iJG3hlFbaS9KS5FHmZnFenVJ2N8sy x35D/7T9RUhNnV3AjPa2QPa2GJYfrba7XgQbAWJZLsx3W/W+DAIcRQOmSF5RkaDqd1ru RxfW83ss9IGHvP7kJDevs+cATDnYvI8PoOrXuDaXQMllFKzQOoBmvHUZVwobwZfhYVyp CLkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HWOgM88ot0DrjWUTF+svco3B4ydk4E/7ymbAD36Uosw=; b=G4rc8RwRLjOpvEVPFLOInaOlXE4m7m0FpGSdVV5leADjAVQexoEd9fHp0rs78a0JLt 57cnkMglDvncAKjQHuowVOLgbgKkBozFWWMkMCA5fhHgDTYY4ABYVfTFdfSHdaR/031V hVz3mYksQkn8HLKuxuUX4Ofz2XV+VgjK/OQ/3qFXU6VdrH/kV45NsiKpHMr+NoC7mas9 Edx3g/bGZsl74CcWxtfAdCPFK5fb/YPBXXeIHtG0GDSromFpPVxJv3S/D2gwJG8l5o5R DzPVCFVs2EsScV/s0YmANugTSoQ0gHUJgMOhFh+o0MMJWgP9MaF6N+u+CVsFWfrLGbAl ZAog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fxhHEtyQ; 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 e18si106759eja.513.2020.06.01.11.13.16; Mon, 01 Jun 2020 11:13:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=fxhHEtyQ; 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 S1730705AbgFASIR (ORCPT + 99 others); Mon, 1 Jun 2020 14:08:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:54028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730658AbgFASIB (ORCPT ); Mon, 1 Jun 2020 14:08:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B2491206E2; Mon, 1 Jun 2020 18:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591034881; bh=SSr626oosF3ax4S4mvuIs1Z3CkLSI8JeRhlwsAREDNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fxhHEtyQs4scqm7Pb4Bv8qADLXRh+wbJrx55azA4RYo4GYr8rV7ENBC9o1BDXOMek RH/nYphoGB6p1WJvFkWUOSXPPQXZGUt424P2teQ6EZ65LmjpJCOuHMKSZXb5Y75kG+ V48qtQeEcZtfd0CwU13SdjSGN9c1ls78Q3vyl9dM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Kefeng Wang , Palmer Dabbelt , Sasha Levin Subject: [PATCH 5.4 053/142] riscv: stacktrace: Fix undefined reference to `walk_stackframe Date: Mon, 1 Jun 2020 19:53:31 +0200 Message-Id: <20200601174043.309752393@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kefeng Wang [ Upstream commit 0502bee37cdef755d63eee60236562e5605e2480 ] Drop static declaration to fix following build error if FRAME_POINTER disabled, riscv64-linux-ld: arch/riscv/kernel/perf_callchain.o: in function `.L0': perf_callchain.c:(.text+0x2b8): undefined reference to `walk_stackframe' Reported-by: Hulk Robot Signed-off-by: Kefeng Wang Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/kernel/stacktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/stacktrace.c b/arch/riscv/kernel/stacktrace.c index 0940681d2f68..19e46f4160cc 100644 --- a/arch/riscv/kernel/stacktrace.c +++ b/arch/riscv/kernel/stacktrace.c @@ -63,7 +63,7 @@ void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs, #else /* !CONFIG_FRAME_POINTER */ -static void notrace walk_stackframe(struct task_struct *task, +void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs, bool (*fn)(unsigned long, void *), void *arg) { unsigned long sp, pc; -- 2.25.1