Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6107707rwd; Mon, 19 Jun 2023 02:22:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ77xH/RVWCYs6Qe3/LObn1WQjZfXs1QePg+8WkI6rDl9xyKXOUnUAxcMqciSMrL8Guci9wZ X-Received: by 2002:a17:902:eb4d:b0:1b1:7362:9a18 with SMTP id i13-20020a170902eb4d00b001b173629a18mr4568174pli.27.1687166522101; Mon, 19 Jun 2023 02:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687166522; cv=none; d=google.com; s=arc-20160816; b=SbkT5QuTnkgGsXu/1GaME/SvG988FPzIrwZdvbzVR7SN21Ih8ebBRcip6R/pp3zrQY Lf0B3AlrYiWDce8VIKNYxZpxKceQiEj86eXPjFKC3ODpeazYqHACFSrBTK4qgRHCjH1P TbffpMpwIIJTrjmqmj7IJgjT67Cl/M4zXZ1rhWa2gvZBjLTFTBa4M516KmJOHFS5y3XF 14S934q+KfJ2bLVyq/abysn5PG3gNrhCJYFwomVc+xjTrSeUuyhZhyZg/ynw7czt28VI 9QUHi3O31qkghqouSQsqJnGvqieZsYOXq8OAJeRJufGeFTF+K0zP65C7asAabqFFnHKn otrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zXZoqo26QOiQ2zofSTrsABDjafjz0zmSQxyy8q5MwGw=; b=Fc4L0kcHx/Ma5moq4MAobJYsx1gxZFJ5Ljb12Sd6TkDD8RBQFPseLTYIILLomNyIqv IVXos+xq90KIemW3iY92ESRc0trub637mKskjtg8yfnb5X4PEWXqWL9eptAjvocuuT6J OaVj8UO+l//Go1PI43WlKIKIOvpMb0o84JJNwPKkcc/R3le+8VALNofvDG5dNRlsEsHS 5EyEiDu5fr6x3Mqo9/imqAuv5Y+bKvAwMfJsfNx1UWPYZwykJY4Z/IDwXStXaUVaFNLX fVaczTjahZiA9JfRRWcjFMxc87X3emBuBiFBiaTu/OTvqKCP4TvHr1wKJKfCdb7fXreO fzhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a170902db0400b001b66810a96asi1213058plx.176.2023.06.19.02.21.49; Mon, 19 Jun 2023 02:22:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230525AbjFSJLG (ORCPT + 99 others); Mon, 19 Jun 2023 05:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230510AbjFSJLE (ORCPT ); Mon, 19 Jun 2023 05:11:04 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D3D1CA; Mon, 19 Jun 2023 02:11:03 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0C2DB2F4; Mon, 19 Jun 2023 02:11:47 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.28.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3DBA43F64C; Mon, 19 Jun 2023 02:11:02 -0700 (PDT) Date: Mon, 19 Jun 2023 10:10:56 +0100 From: Mark Rutland To: Kent Overstreet Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Christopher James Halse Rogers Subject: Re: [PATCH 28/32] stacktrace: Export stack_trace_save_tsk Message-ID: References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-29-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509165657.1735798-29-kent.overstreet@linux.dev> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 09, 2023 at 12:56:53PM -0400, Kent Overstreet wrote: > From: Christopher James Halse Rogers > > The bcachefs module wants it, and there doesn't seem to be any > reason it shouldn't be exported like the other functions. What is the bcachefs module using this for? Is that just for debug purposes? Assuming so, mentioning that in the commit message would be helpful. Thanks, Mark. > Signed-off-by: Christopher James Halse Rogers > Signed-off-by: Kent Overstreet > --- > kernel/stacktrace.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/stacktrace.c b/kernel/stacktrace.c > index 9ed5ce9894..4f65824879 100644 > --- a/kernel/stacktrace.c > +++ b/kernel/stacktrace.c > @@ -151,6 +151,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store, > put_task_stack(tsk); > return c.len; > } > +EXPORT_SYMBOL_GPL(stack_trace_save_tsk); > > /** > * stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array > @@ -301,6 +302,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *task, > save_stack_trace_tsk(task, &trace); > return trace.nr_entries; > } > +EXPORT_SYMBOL_GPL(stack_trace_save_tsk); > > /** > * stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array > -- > 2.40.1 > >