From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34E10C433F4 for ; Fri, 17 Jul 2020 09:04:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17A0E20829 for ; Fri, 17 Jul 2020 09:04:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726465AbgGQJEy (ORCPT ); Fri, 17 Jul 2020 05:04:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:55306 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbgGQJEy (ORCPT ); Fri, 17 Jul 2020 05:04:54 -0400 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 1F71CB132; Fri, 17 Jul 2020 09:04:57 +0000 (UTC) Date: Fri, 17 Jul 2020 11:04:52 +0200 (CEST) From: Miroslav Benes To: Mark Brown cc: Catalin Marinas , Will Deacon , Heiko Carstens , Vasily Gorbik , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , Christian Borntraeger , Ingo Molnar , Jiri Slaby , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] stacktrace: Remove reliable argument from arch_stack_walk() callback In-Reply-To: <20200715202821.12220-2-broonie@kernel.org> Message-ID: References: <20200715202821.12220-1-broonie@kernel.org> <20200715202821.12220-2-broonie@kernel.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jul 2020, Mark Brown wrote: > Currently the callback passed to arch_stack_walk() has an argument called > reliable passed to it to indicate if the stack entry is reliable, a comment > says that this is used by some printk() consumers. However in the current > kernel none of the arch_stack_walk() implementations ever set this flag to > true and the only callback implementation we have is in the generic > stacktrace code which ignores the flag. It therefore appears that this > flag is redundant so we can simplify and clarify things by removing it. Correct. I dug around and it seems it was the case even when it was introduced. So I wonder about the comment. I don't remember the details, maybe Thomas or someone else does. But the patch looks correct. Miroslav