Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp881834pxb; Fri, 22 Apr 2022 13:20:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjry7yLDaTX5II1XPmh/vijQK/kTO/mOp+gMu5AlESeR9VqbDixMNPcQH6/KrzZWF0Iuan X-Received: by 2002:a17:902:b7c1:b0:15b:3c09:3ed3 with SMTP id v1-20020a170902b7c100b0015b3c093ed3mr6233455plz.73.1650658835863; Fri, 22 Apr 2022 13:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650658835; cv=none; d=google.com; s=arc-20160816; b=hsl0XSVy8yt1Akiy2Rc/tCLjKOzjSM3kZR5U5BuWf1OOHOt/rA1U2qZgOGE3btomLN 73hxWSQpKSTk9YHTuyb1jrSlXKHLY8+gIkF5Yw48tb84NiWGFjXTNf8Ig8B8FRdKjQ0x 98lex6uoaWeqz8pY3vLMXMr8vEI2M4hFLlHnuJ70E0mcO04zluLf/YvG3HTrs9IVIuK9 0f75pRioF4QSng1OYg5aL+sE0QqS6dKZrLQJDuVvTysfuX+HrYF1AjKh1grKzLH0z1qv Nycyy5uNtWrKBFOD9Z5f9xTyTg68BuNZf/9G6nr77rNV2JGuyiNLoNijRrXAwHAxyf5Z c4GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=n1Yql9upU75zheOIjJ5CfZygECb11X+dQSDagElkgcQ=; b=h2qe3Dxx5C0Fh4AyLCrwaJHPIl2YAUmE8T/SWGeQA4oxUoU9QFtRZLmlvBEjzYYfk3 YgsY/+wNVOoLz3WfChYcPvYs0yOrQM4WXYCi9aNtrH1kEG+a1VtaJ6BCqzydKpE34vav AZbIPd93zik77yj8deSVTc71QgGeZSdKWjwJjAtgYb0PUtT0PUDYZxM1YVOI9xACJd/9 MS5H6X/T0rR7OzAAFOx2lIqzQkKBIrE3IV3ZMRWCjITyLcRx7epWW4IlYboUi6hnszJS D7dg/ECl/Cw82PuRXPLgkMWzC+i9qLg5lfFwvYPw7KFcYxSvD45Z/zN2xXGdstJQKcPr mrfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q29-20020aa7983d000000b004faa59148b8si8163342pfl.211.2022.04.22.13.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:20:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B3D6255F1B; Fri, 22 Apr 2022 12:07:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359059AbiDTCso (ORCPT + 99 others); Tue, 19 Apr 2022 22:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359025AbiDTCs2 (ORCPT ); Tue, 19 Apr 2022 22:48:28 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74EC22E9FB for ; Tue, 19 Apr 2022 19:45:42 -0700 (PDT) Received: from kwepemi500005.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KjlQh68FmzhXdN; Wed, 20 Apr 2022 10:45:32 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by kwepemi500005.china.huawei.com (7.221.188.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 20 Apr 2022 10:45:40 +0800 Received: from localhost.localdomain (10.175.112.125) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 20 Apr 2022 10:45:38 +0800 From: Tong Tiangen To: Mark Rutland , James Morse , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Robin Murphy , Dave Hansen , Catalin Marinas , Will Deacon , Alexander Viro , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , , "H . Peter Anvin" CC: , , , , Kefeng Wang , Xie XiuQi , Guohanjun , Tong Tiangen Subject: [PATCH -next v4 5/7] arm64: mte: Clean up user tag accessors Date: Wed, 20 Apr 2022 03:04:16 +0000 Message-ID: <20220420030418.3189040-6-tongtiangen@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220420030418.3189040-1-tongtiangen@huawei.com> References: <20220420030418.3189040-1-tongtiangen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robin Murphy Invoking user_ldst to explicitly add a post-increment of 0 is silly. Just use a normal USER() annotation and save the redundant instruction. Signed-off-by: Robin Murphy Reviewed-by: Tong Tiangen --- arch/arm64/lib/mte.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/lib/mte.S b/arch/arm64/lib/mte.S index 8590af3c98c0..eeb9e45bcce8 100644 --- a/arch/arm64/lib/mte.S +++ b/arch/arm64/lib/mte.S @@ -93,7 +93,7 @@ SYM_FUNC_START(mte_copy_tags_from_user) mov x3, x1 cbz x2, 2f 1: - user_ldst 2f, ldtrb, w4, x1, 0 +USER(2f, ldtrb w4, [x1]) lsl x4, x4, #MTE_TAG_SHIFT stg x4, [x0], #MTE_GRANULE_SIZE add x1, x1, #1 @@ -120,7 +120,7 @@ SYM_FUNC_START(mte_copy_tags_to_user) 1: ldg x4, [x1] ubfx x4, x4, #MTE_TAG_SHIFT, #MTE_TAG_SIZE - user_ldst 2f, sttrb, w4, x0, 0 +USER(2f, sttrb w4, [x0]) add x0, x0, #1 add x1, x1, #MTE_GRANULE_SIZE subs x2, x2, #1 -- 2.25.1