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=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 79E37C3A5A1 for ; Thu, 22 Aug 2019 20:00:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 50E5F2339F for ; Thu, 22 Aug 2019 20:00:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ctgwBGwp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50E5F2339F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v875VBtBiP7Sv1jmf9rRpaY1rlZVC85gk2qXrYhTYik=; b=ctgwBGwp1vxl7y B4HpnOdk1gRyXbfSwbfVGwEVB8iV2xN7KjXZrWmeAY/WQ1xVmEFfP82FxrwHzGxPvS/l8fGwWcm9F x12RKF+vnMwEEc3Re5VcytMX2gTOeNezFFaa4quszD0G0NgRpDy+iWqcrdzsRcwWEyqNEoCU6oSKs 1sXfqYg3TviNUcrLoWf5KIipIB2883YG8iarZ9DcAfhSlDlCJTa9PeEPf8TiM1YNDUXmEjYQ3n4X0 G2BtE0pl2tpxOHdW4sT7lTCetQIxdtKVKiDp8bqgoID2yrxKtqKJyV28eTyxV40pj2WgZFUotj2ft /8aBzPvPmeCi4KjEeUvg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i0tG6-00005c-0N; Thu, 22 Aug 2019 20:00:34 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i0tG3-00005D-B2 for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2019 20:00:32 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EB92E3175283; Thu, 22 Aug 2019 20:00:30 +0000 (UTC) Received: from treble (ovpn-121-55.rdu2.redhat.com [10.10.121.55]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D43B419C5B; Thu, 22 Aug 2019 20:00:29 +0000 (UTC) Date: Thu, 22 Aug 2019 15:00:27 -0500 From: Josh Poimboeuf To: Raphael Gault Subject: Re: [RFC v4 03/18] objtool: Move registers and control flow to arch-dependent code Message-ID: <20190822200027.e4oidncgyj5oq7to@treble> References: <20190816122403.14994-1-raphael.gault@arm.com> <20190816122403.14994-4-raphael.gault@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190816122403.14994-4-raphael.gault@arm.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 22 Aug 2019 20:00:31 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190822_130031_394949_209F359B X-CRM114-Status: GOOD ( 23.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: raph.gault+kdev@gmail.com, peterz@infradead.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, julien.thierry.kdev@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 16, 2019 at 01:23:48PM +0100, Raphael Gault wrote: > The control flow information and register macro definitions were based on > the x86_64 architecture but should be abstract so that each architecture > can define the correct values for the registers, especially the registers > related to the stack frame (Frame Pointer, Stack Pointer and possibly > Return Address). > > Signed-off-by: Raphael Gault > --- > tools/objtool/arch/x86/include/arch_special.h | 36 +++++++++++++++++++ > tools/objtool/{ => arch/x86/include}/cfi.h | 0 > tools/objtool/check.h | 1 + > tools/objtool/special.c | 19 +--------- > 4 files changed, 38 insertions(+), 18 deletions(-) > create mode 100644 tools/objtool/arch/x86/include/arch_special.h > rename tools/objtool/{ => arch/x86/include}/cfi.h (100%) > > diff --git a/tools/objtool/arch/x86/include/arch_special.h b/tools/objtool/arch/x86/include/arch_special.h > new file mode 100644 > index 000000000000..424ce47013e3 > --- /dev/null > +++ b/tools/objtool/arch/x86/include/arch_special.h The arch in the filename is redundant. It would be a bit nicer if it were named "special.h" but I guess that would conflict with the non-arch special.h, unless we put non-arch headers and arch headers in separate namespaces somehow. Maybe it's ok for now unless anybody has a better idea. > @@ -0,0 +1,36 @@ > +/* > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, see . > + */ Instead of the above can you use the SPDX identifier? /* SPDX-License-Identifier: GPL-2.0-or-later */ And the same comment for the other headers in the patch set. -- Josh _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel