Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp770595yba; Wed, 24 Apr 2019 09:18:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOOuw4QnqGULvjT6/9q4CASmd09rpg11r/7npvNBXnm9QfXvfTKH6JG24KJPPscLF4TZEd X-Received: by 2002:a17:902:b10a:: with SMTP id q10mr279654plr.303.1556122728409; Wed, 24 Apr 2019 09:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556122728; cv=none; d=google.com; s=arc-20160816; b=OXHeKc7NHh6JH5ThOp367hSvRq7JpmhVC3Q0wYvrzrpF48M/xfuuI3bBtCVZr8tHpm WwiKqt7yf1M4850UEsfApzo22ki+0omzJ5DhpLcgQ+KtN8wOJym2gpAqLHIRmmf1ix/x 7AYY06IWVXEr8Ls7zQ/0E/Gh19ZZYNq453a9Q3qOz3sC03aKPe/3bXzgmr7t7lPf/gvd KB3lQOqf4REc1cOKTegE2+VvUNXKcQSXUFW0QySypWUTJc4hg/vaeuXc+uXr+Cb7u3py Er7Isfx9FeOkyo5P44stf1ixD1atkj8Q9y2v68wdSycrVFyU83Wb3nHF1nD8gzrTJ27h G25w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FPYav8SMSvngHocEJzR7qlB+7NxcAs+XXjV2zRJhFfI=; b=zTfeCa88cPkNVPfnAy/o47LBPAW4a4tSF8JzCBOUNawjcLKqWkxuhUVqVSGOwmNSNI OozYpT6/80fL4G9hKboBtTPs2cv4EFGMeryDPmGTbMba6DQTMjkybYW1GObjkyKZ3TT1 JAPpbyTqMnZ+qX0O2jZgeEy7gqm6l5/z+A0DHToJ8y97XyuqWlmQq9nh6+3+jq9LpqmY TTk5DW5WYyf+2BWH/Z5HPgQxUM6LXtjRAwOgvw2BGqIdABlvQfRIcyzGqfeTjCeSqhUT yNmEinl7BdEWWiAc1BSSAVU5wYUWqFxxXmiiuN5Mu+YyQ25MPb/jsbj2n3ciLK9mxFhG ronQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si20160743plg.156.2019.04.24.09.18.32; Wed, 24 Apr 2019 09:18:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731113AbfDXQRf (ORCPT + 99 others); Wed, 24 Apr 2019 12:17:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52014 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbfDXQRf (ORCPT ); Wed, 24 Apr 2019 12:17:35 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F0F2D89AE4; Wed, 24 Apr 2019 16:17:34 +0000 (UTC) Received: from treble (ovpn-123-99.rdu2.redhat.com [10.10.123.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0BB96608C1; Wed, 24 Apr 2019 16:17:33 +0000 (UTC) Date: Wed, 24 Apr 2019 11:17:32 -0500 From: Josh Poimboeuf To: Raphael Gault Cc: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "peterz@infradead.org" , Catalin Marinas , Will Deacon , Julien Thierry Subject: Re: [RFC 1/6] objtool: Refactor code to make it more suitable for multiple architecture support Message-ID: <20190424161732.lnttohdvhujtey64@treble> References: <20190409135243.12424-1-raphael.gault@arm.com> <20190409135243.12424-2-raphael.gault@arm.com> <20190423201306.wyb57hz7xrvqbn75@treble> <13212ab1-20fe-88c6-f121-acd8ea623757@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <13212ab1-20fe-88c6-f121-acd8ea623757@arm.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 24 Apr 2019 16:17:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 04:11:57PM +0000, Raphael Gault wrote: > On 4/23/19 9:13 PM, Josh Poimboeuf wrote: > > arch_dest_rela_addend_offset() might be a more descriptive name. Also > > it might be simpler to just make it an arch-specific macro which is 0 on > > arm64 and 4 on x86. > > > > "compute" is implied, it can probably be removed from the names to make > > them a little more concise. > > > > I am more in favor of the functions, I have to admit I don't know which > is really better but in any event I will rename them. If you prefer functions, that's fine with me. I don't have a strong preference. -- Josh