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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 63464C48BD1 for ; Wed, 9 Jun 2021 10:26:09 +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 307E661181 for ; Wed, 9 Jun 2021 10:26:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 307E661181 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wJEl6yrILXL/rC0YiGsu2/12d2yYiLQXamAHGPEN48s=; b=BMCquj59JgqNZZ soUw+TsjYQT+gZyn1XDjoi9biGli6EWJlBRcgSIMZHC/mnmPqWdTzTlSlhG84hFWYwKYWmtv24uNL gyoyBmILoGhs42aX1kmx3z0YJ22BGSn70ZDHGtqmTnD7AT20bSXN6VkLweGwApIq8f//BCPXZZXa4 j720kUgKdc015FKRpZQfjufZXobKJRPxX8dnxKQpZNF72vNzEH7oGl4BQs+xL0k3Hw6b34a8adid5 KRRnJ+9sPt0/gmAMKm8rBxysVQL8Agez0EWA0vNQ5cfRe4MRd8Nsx69XRGYl1iT5CQnLYJkrgm+d1 FTCDhtinzxqp6kGV2KXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqvMq-00CyMr-0A; Wed, 09 Jun 2021 10:23:24 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqvMd-00CyKV-2T for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 10:23:12 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3F21D11B3; Wed, 9 Jun 2021 03:23:07 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A75133F719; Wed, 9 Jun 2021 03:23:06 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org, will@kernel.org Cc: Mark Rutland Subject: [PATCH 0/2] arm64: insn: cleanups Date: Wed, 9 Jun 2021 11:22:59 +0100 Message-Id: <20210609102301.17332-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210609_032311_199274_BDB3B5AD X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Will, These couple of patches are fixups for the arm64 for-next/insn branch, which try to bring that inline with the intent of the original patches. The main change is to have users of patching code explicitly include (which was the intent of the original patches), as having include can create some painful header dependencies, and this more clearly separates the insn parts under arm64/lib/ from the parts under arm64/kernel/. The header dependencies don't appear to be an issue today, but get in the way of some subsequent rework patches I'm developing, and I'd like to fix that now before there's any additional reliance on pulling things in. The other change is to move AARCH64_INSN_SIZE into , to keep all the insn bits in one place. The big diff for kprobes.c is due to sorting the includes, which are unchanged other than the inclusion. Thanks. Mark. Mark Rutland (2): arm64: insn: decouple patching from insn code arm64: insn: move AARCH64_INSN_SIZE into arch/arm64/include/asm/alternative-macros.h | 4 +--- arch/arm64/include/asm/insn.h | 4 +++- arch/arm64/include/asm/kvm_asm.h | 1 + arch/arm64/include/asm/patching.h | 2 -- arch/arm64/kernel/cpufeature.c | 1 + arch/arm64/kernel/ftrace.c | 1 + arch/arm64/kernel/jump_label.c | 1 + arch/arm64/kernel/kgdb.c | 1 + arch/arm64/kernel/patching.c | 2 ++ arch/arm64/kernel/probes/kprobes.c | 18 ++++++++++-------- arch/arm64/kernel/traps.c | 2 ++ arch/arm64/net/bpf_jit_comp.c | 1 + 12 files changed, 24 insertions(+), 14 deletions(-) -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel