Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp329720pxk; Wed, 2 Sep 2020 02:28:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1d16WxJyzDsMjULB3gDzexU75cFg89i2Wu2F4GmhHkYIK2ww6rVX/Im9EA5f4uE/rj0sX X-Received: by 2002:a17:906:f1cf:: with SMTP id gx15mr5310187ejb.241.1599038914963; Wed, 02 Sep 2020 02:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599038914; cv=none; d=google.com; s=arc-20160816; b=ygkEngqa1UvlDLYi3xHWC6Fu+AkYGCZxlQAgDo9PdckfD00YTb8/ZADYlNkw/Q3SB2 6/5q56MqHcp/451w8/9IKroeBEKcNf1gl5tymTLmPA27LdmM0Ob921fxxMcUEFlclrQU tkBf+3xQwLoL4QFxMtqnzaZi8F/DXnv3FrJ3TffCT19ei4IUOSqAZk9i3PuWAZQ9LMlq ACeLeOi3FIJUCenIQdSI/E1QELNcIqJQ0iXJ6q5oOf+tHdgCM9VQmouimm1tngBnJ60h 1IErBQtt33oZncmGKwgxECkn9yVCnYfMLStprJGJKIXAvFWqvqPNb7R/0pdPK2T1wvPD xxXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=u8ScGjn9M9MC4PyDhjIWzSaWt9gvFTAtjOl9iYZ445o=; b=L9taUvF6yXQxyVh8A86rEZHzGg+jUM0/8c+U5RgO8/ayYXUXuDpQBZSH/E1fVI4iL1 s9q33XOYyLnBQMUx/pCZ3nwl2SrYS3xt8uf7bAjBU4Jia9LCsuJr5j8vv5SR9UvNJ25g DVi+phKgjYYGD0g3tmutMcEafUGqnPLvGbiSLf8UFTu6JZGX4PFC/IJuTRUbD8FSCxI4 hl8z9OXr25udUru8CT9ras8fclcx8svnoaINR3VaHke/d3+1FI0XcoOI1pGx/ANxuXcs sA+J3JeAV8LaEsxy971haOHWM7bYThrTQ8Tf/Io4Eg4BM5o90z+Vd3RydswUx0r3VP5x 3J4w== 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 t11si2139222ejb.154.2020.09.02.02.28.11; Wed, 02 Sep 2020 02:28:34 -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 S1726311AbgIBJ06 (ORCPT + 99 others); Wed, 2 Sep 2020 05:26:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:60722 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbgIBJ05 (ORCPT ); Wed, 2 Sep 2020 05:26:57 -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 F2EC8B6A4; Wed, 2 Sep 2020 09:26:56 +0000 (UTC) Date: Wed, 2 Sep 2020 11:26:55 +0200 (CEST) From: Miroslav Benes To: Mark Brown cc: Catalin Marinas , Will Deacon , Vasily Gorbik , Heiko Carstens , Borislav Petkov , Thomas Gleixner , "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 v2 2/3] arm64: stacktrace: Make stack walk callback consistent with generic code In-Reply-To: <20200819124913.37261-3-broonie@kernel.org> Message-ID: References: <20200819124913.37261-1-broonie@kernel.org> <20200819124913.37261-3-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, 19 Aug 2020, Mark Brown wrote: > As with the generic arch_stack_walk() code the arm64 stack walk code takes > a callback that is called per stack frame. Currently the arm64 code always > passes a struct stackframe to the callback and the generic code just passes > the pc, however none of the users ever reference anything in the struct > other than the pc value. The arm64 code also uses a return type of int > while the generic code uses a return type of bool though in both cases the > return value is a boolean value. > > In order to reduce code duplication when arm64 is converted to use > arch_stack_walk() change the signature of the arm64 specific callback to > match that of the generic code. > > Signed-off-by: Mark Brown Reviewed-by: Miroslav Benes M