Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2649951rdb; Wed, 4 Oct 2023 07:34:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9SnyrcsUxd0fnWM4VQlJkhcblDefE3ocdNV17cOfgHFXa+S3pRUgXgbizxj4yVS/6Wm32 X-Received: by 2002:a05:6358:e49f:b0:143:7bba:3c73 with SMTP id by31-20020a056358e49f00b001437bba3c73mr2445179rwb.1.1696430098587; Wed, 04 Oct 2023 07:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696430098; cv=none; d=google.com; s=arc-20160816; b=Puhc3kQXpol+ind+MumwSl+ZqHUwX28f2dBbdm4SPy71E8ePoIOdeiSmLIxn73M8C8 Tk54FOmYTmf80NcwFeryxPL/X2ImU0rBP5Xllg5kTXn38NZHwPIrVL6hRG2eEnYO8+wX iQPZIqgOCfOA7k4MOhRD6mUlpb0d3y+MMFt+QJw2V8zNiWqzbZACEHr/eocH1iIiTvu8 X626qTGAx4F87eD9avMc8hidibXS39Icc7VwpxXmc7WZ03u1/2UtNCkSdi7SYhEwufCs Jt/rTWBvW7SO60PgMiD58wmZd4D+7iV3eDDc7gpK8Rep9cU2L0iHjLY1TZCUJjotYZsz 4utA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CM1tzOwYIRfBowwMaDOZ0YTv6DSHjRM1ieV3JngoGb0=; fh=LGqxV//S2dNc9ZXry/APvah5P8y0u5J065Xrxe/jE+g=; b=H74Z/XCW2LFpBsVHYW0IPNjarqt3UIATs6SZGDSfIweydEiLxLkgieP5Xsur0DqVy/ 5eOEDbyey0yigGEEHZxWzqflRbow2reLoYUY4bOFz4vcaWLz2oTI0BaB/nRdHoWNa1hs jXxvKwbF2meVVMlsC2IoGlQiijbm+Fxggix08pSTewJke/Z6M0hkAy4ii0tDb3Tkq7z4 kbNhSFCrMpjtHmeFSTtGnnD1YMkN/+moLtdeMnu5hB/ORdMM3VqrKsAmCh1sbLqxjSGF fFfNs4ojtL64sna3+t6px7t7KMglhD4VbNNYEQlQ1xuRIWiCKrBI7ASzW4nZkZMiEaxQ Dq8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=zEip87a0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a37-20020a634d25000000b00569cd6ead3asi3776275pgb.643.2023.10.04.07.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=zEip87a0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 802D1801B650; Wed, 4 Oct 2023 07:34:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242686AbjJDOew (ORCPT + 99 others); Wed, 4 Oct 2023 10:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233111AbjJDOeu (ORCPT ); Wed, 4 Oct 2023 10:34:50 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66FC9C1 for ; Wed, 4 Oct 2023 07:34:45 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-406532c49dcso4962755e9.0 for ; Wed, 04 Oct 2023 07:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1696430084; x=1697034884; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CM1tzOwYIRfBowwMaDOZ0YTv6DSHjRM1ieV3JngoGb0=; b=zEip87a0BH1j92Z/jps+EGC6DV3MxeNx5LtX4FBEpISjNNEYsJg4mbdQGHLOHSdLHy xFbG7KASGIupi44Jia+cpHBuRqQsy5dzriC6VLao+g8Lc7CtUIEtnGyTp77u+dzSuozk AfMZWpToKPycdJjYhyOwSvf5hNTXtpAMROuH20kp64XvBxRqL74v1Dyn9p7ONQbX1wxg b+0COpHsMLnzJ2qWwnfmVWGnZIkRZyKLxzCxjdaF3X0zljQ57WdRkjDdrsDdycU1Pngu 9GfPuT6IdQ4ZaxUvtdogEsCm3eQPtgmPjSb8JTUhUZbho6HztewR37Ogt/4DXdjIyBlC Us/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696430084; x=1697034884; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CM1tzOwYIRfBowwMaDOZ0YTv6DSHjRM1ieV3JngoGb0=; b=kmsL9voWoMP6qrIXRGzWvsUNEGbYWb2Qd/vlJR8SGw7gKeEAx4VyKQ2sujfXHBqalQ WGoTV8M/SBEPvCd7Byny9TFgziK+uWtsm22+2WZwmW8yCfIAwxzqxLZ6/0efys8gaT1K JA+prUxlzAxGo3Cn/K2opG7+1p9doZYaLY2WpZd49a/Dt/oI4GbnHEMS1xwBqRoENifA SNJ1l2oR/ZjvlBm2ZIhnDMiKisSTlfLIN16ZvDwWlYVSKmDxvOIiQkShmc3wu7Oqd89F hXimkZkj2UGiI1X+BYjWLq3GrPtYynGdot0HZfogFqUNlC5dLJJiNBiRFMloWTno9tlp rHcQ== X-Gm-Message-State: AOJu0YxR1q/ViocVuZh19cmpVrP5SwpyyCzBEXhIyOdqKtQNXXFy8Lgc pPk955lcBiFsFJPpFP+uyQ9MTg== X-Received: by 2002:a05:600c:5114:b0:405:4127:f471 with SMTP id o20-20020a05600c511400b004054127f471mr2532705wms.1.1696430083756; Wed, 04 Oct 2023 07:34:43 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:9474:8d75:5115:42cb]) by smtp.gmail.com with ESMTPSA id t20-20020a1c7714000000b00401e32b25adsm1686205wmi.4.2023.10.04.07.34.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:34:43 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: [PATCH 0/5] riscv: cleanup assembly usage of ENTRY()/END() and use local labels Date: Wed, 4 Oct 2023 16:30:49 +0200 Message-ID: <20231004143054.482091-1-cleger@rivosinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:34:57 -0700 (PDT) This series does a cleanup of all ENTRY()/END() macros that are used in arch/riscv/ as well as use of local labels. This allows to remove the use of the now deprecated ENTRY()/END()/WEAK() macros as well as using the new SYM_*() ones which provide a better understanding of what is meant to be annotated. Some wrong usage of SYM_FUNC_START() are also fixed in this series by using the correct annotations. Finally a few labels that were meant to be local have been renamed to use the .L suffix and thus not to be emitted as visible symbols. Note: the patches have been split between arch/riscv/ and arch/riscv/kvm/ due to having different maintainers. Clément Léger (5): riscv: use ".L" local labels in assembly when applicable riscv: Use SYM_*() assembly macros instead of deprecated ones riscv: kernel: Use correct SYM_DATA_*() macro for data riscv: kvm: Use SYM_*() assembly macros instead of deprecated ones riscv: kvm: use ".L" local labels in assembly when applicable arch/riscv/kernel/copy-unaligned.S | 8 +-- arch/riscv/kernel/entry.S | 19 +++---- arch/riscv/kernel/fpu.S | 8 +-- arch/riscv/kernel/head.S | 30 +++++----- arch/riscv/kernel/hibernate-asm.S | 12 ++-- arch/riscv/kernel/mcount-dyn.S | 20 +++---- arch/riscv/kernel/mcount.S | 18 +++--- arch/riscv/kernel/probes/rethook_trampoline.S | 4 +- arch/riscv/kernel/suspend_entry.S | 4 +- arch/riscv/kernel/vdso/flush_icache.S | 4 +- arch/riscv/kernel/vdso/getcpu.S | 4 +- arch/riscv/kernel/vdso/rt_sigreturn.S | 4 +- arch/riscv/kernel/vdso/sys_hwprobe.S | 4 +- arch/riscv/kvm/vcpu_switch.S | 32 +++++------ arch/riscv/lib/memcpy.S | 6 +- arch/riscv/lib/memmove.S | 56 +++++++++---------- arch/riscv/lib/memset.S | 6 +- arch/riscv/lib/uaccess.S | 11 ++-- arch/riscv/purgatory/entry.S | 16 ++---- 19 files changed, 125 insertions(+), 141 deletions(-) -- 2.42.0