Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp534760pxb; Wed, 27 Jan 2021 14:11:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX49J13ZyWb0CO2kldDFUAmuOJkoRaX+uDhbGCKUOqkImgsQ9VN8rmeULdYBSy/DRpCD3Q X-Received: by 2002:aa7:db4e:: with SMTP id n14mr10926057edt.101.1611785494129; Wed, 27 Jan 2021 14:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611785494; cv=none; d=google.com; s=arc-20160816; b=uZM0tNzAUd7clbMrT8TcAT3hR0KfugZIO/6TqUO8cSPRBFZJ6v1dDzb+1Am2rhC4mp mEqW9UWnn3wx+xBGnPevzxdWzNVCxdzlI2ZjitWELMS8Z4VUAgZZTqEbcLl4vnrBHQQU OKLbSSt6bAp1G16oqhvQc4Yda0/CAp4PA0unws87+/5C40ZhZ7BmpFehaPT5SjT4IlRE u4HeM6ie3F7D+Reo0hrqF2zCokfjmvIiFRiYKhxmH4J1mBTRrckX321GFDtw/Gb1DBDG B3rGqs5wT5DsB5G6ZFMA8trZ3JgoCWsMM7QRMaxupYeNG63MTEjnayyWH6aqmxhJKOH+ 3z2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=+mJFcYdt3ceWGCtoHWsrLTup9MLRSaQyqjU8RVlr6CU=; b=ecwbMrtfEP6//7SYAZ74Hy5/zWA/7qiQ/pqaXMrMqP7a1LwU+9gxf+kPKSDLopoyOn mzweYZokI6bytjq80FR8oiV4hneLvrZUW/6gGgB/b9MFdBE81/i8EqCR8gE/waDQI/nu pAJf6hWckarAsbfmmV8Zoq0FAV955DKU5O6UV1Sst07xoApqdCxeg2/uF64Tiij9lX3G nxuyqaNw6G+khAXfUNt5C/7tNcUeL+IK3w1BCqG79tnyia8pUCMfjfP8Kxv675MWTich Q9oRJGNeWfd4JJ8eOgnT6NF0Q/x0w5Ez0EjSUnavRiiSY9liSl8Hfs+wx6YPqRHvQnRE BU1A== 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 i9si1366105eja.115.2021.01.27.14.11.08; Wed, 27 Jan 2021 14:11:34 -0800 (PST) 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 S236091AbhA0Krl (ORCPT + 99 others); Wed, 27 Jan 2021 05:47:41 -0500 Received: from mx2.suse.de ([195.135.220.15]:39968 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236145AbhA0Kpo (ORCPT ); Wed, 27 Jan 2021 05:45:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 02C94ACBA; Wed, 27 Jan 2021 10:45:02 +0000 (UTC) Date: Wed, 27 Jan 2021 11:45:01 +0100 (CET) From: Miroslav Benes To: Mark Brown cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Josh Poimboeuf , Jiri Kosina , Petr Mladek , Joe Lawrence , x86@kernel.org, linux-s390@vger.kernel.org, live-patching@vger.kernel.org Subject: Re: [PATCH] stacktrace: Move documentation for arch_stack_walk_reliable() to header In-Reply-To: <20210118211021.42308-1-broonie@kernel.org> Message-ID: References: <20210118211021.42308-1-broonie@kernel.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Jan 2021, Mark Brown wrote: > Currently arch_stack_wallk_reliable() is documented with an identical > comment in both x86 and S/390 implementations which is a bit redundant. > Move this to the header and convert to kerneldoc while we're at it. Makes sense. > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: "H. Peter Anvin" > Cc: Heiko Carstens > Cc: Vasily Gorbik > Cc: Christian Borntraeger > Cc: Josh Poimboeuf > Cc: Jiri Kosina > Cc: Miroslav Benes > Cc: Petr Mladek > Cc: Joe Lawrence > Cc: x86@kernel.org > Cc: linux-s390@vger.kernel.org > Cc: live-patching@vger.kernel.org > Signed-off-by: Mark Brown Reviewed-by: Miroslav Benes > diff --git a/arch/s390/kernel/stacktrace.c b/arch/s390/kernel/stacktrace.c > index 7f1266c24f6b..101477b3e263 100644 > --- a/arch/s390/kernel/stacktrace.c > +++ b/arch/s390/kernel/stacktrace.c > @@ -24,12 +24,6 @@ void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, > } > } > > -/* > - * This function returns an error if it detects any unreliable features of the > - * stack. Otherwise it guarantees that the stack trace is reliable. > - * > - * If the task is not 'current', the caller *must* ensure the task is inactive. > - */ > int arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, > void *cookie, struct task_struct *task) > { Just a note. arch/powerpc/kernel/stacktrace.c has the same for __save_stack_trace_tsk_reliable(), but it would not be nice to pollute include/linux/stacktrace.h with that in my opinion. It is an old infrastructure after all. Miroslav