Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1891329rda; Tue, 24 Oct 2023 06:35:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzI9OkXv25W+Im1PRz6vmGCCKcUfOhykaNjkFs1V3/AOb/+NR6s2wIvYXlaslPdaKfYL8r X-Received: by 2002:a17:90a:1a43:b0:27d:12e1:94e0 with SMTP id 3-20020a17090a1a4300b0027d12e194e0mr6219128pjl.36.1698154508887; Tue, 24 Oct 2023 06:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698154508; cv=none; d=google.com; s=arc-20160816; b=DokkG7hpCZfjssesdLYzIGmnjWPOrNi2Lbfh0cQrmgfGviDVj97hM70Jm1/NTiQj1P zCMwnUjiSc7L7zBQHHRUcsVcyNAsemtD8xNBEuK0JdKTU+ny9mb0V+yznvw9o+M8b2I4 rNa/9y7sFUYQKZV2KXAFF1bj2bYl4aZLWkQtu9pp2HXj4dtiNbYeBVTika2TMTFHJt68 DLWMwjUB8R32JOyLQ+h3YNLfHuzG4IANQKwGE3K1yfbIagolsdUzkZS3HV7Rrqffq3Zi qHS3/SEWXzUpFbmUu2xp1+Uve6MyhKRUUE0uan3/MYzum8xjqFHoGhLWaAGHw4DCZ61t rA9Q== 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=p7NxDbO7GUxLbtod+vtUf5vVuxdvzarRCEG44wnrlEM=; fh=Rc5BA83UGq8xI+benUSDUMXSpsH6SOD8MT9gG1locMQ=; b=G39GW/zglSp9KpVwBuJauRxyVNXePy0dMal4ksi3T3nmIkqq5zqS1Pvw52Jo1qZXLX VosjY983mK8eKtrxcMKqjc6EdltW+gsuLOXVEAdZszrP1HSBUgFvqqc1VOqqdba5853T VUKejHoGUemjSgBTYH82maVTgjkGtL5vVHhOOKeS6I77foek2dSCei9LIJXx8TnlEoas HFyhVSVouhH8YFU05fp+TGjgz/YxmIlNSqYJxXzY5a6jo32uTCqYyj20GW9D7fWY4qfR b2Z9x0yQ5b/QncR9O2fp3mOef8okX8jJOoW8aQ9p4cPmsrnP99GkfDTXljatSnzKn1Zm uVZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=xwUmhfBy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id on17-20020a17090b1d1100b0026f75d932a8si8484930pjb.185.2023.10.24.06.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:35:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=xwUmhfBy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 9B8B680A49B4; Tue, 24 Oct 2023 06:35:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234682AbjJXNew (ORCPT + 99 others); Tue, 24 Oct 2023 09:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234574AbjJXNer (ORCPT ); Tue, 24 Oct 2023 09:34:47 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02E956A70 for ; Tue, 24 Oct 2023 06:27:53 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-408363c2918so5186735e9.0 for ; Tue, 24 Oct 2023 06:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1698154071; x=1698758871; 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=p7NxDbO7GUxLbtod+vtUf5vVuxdvzarRCEG44wnrlEM=; b=xwUmhfBygJgbn9ZhfJx6kMQE/3xoShhv+BwNb498DMPgntOJZO0skb+jMsPBXAkaoJ kLo/QGylY36f7bjKLy8RWH4YW1WIxyb+HWY0GEu6xgkPc68H/7nvjMwLFiciW09t/mYT MfW8keRcVgh9QvzzRsrNBPJ5GensudLK4y1Kf1/DIBRJlVxqTMtPIcwbyXTb0k7ryaSZ AYaGSXKL5pw2YN0JgzROVQdMEdj4nB2giRlkzD+vL1bvYQ70WkaYlV6PwPiMxyI+Kcqs WXRygQGjPzMgGSEEknSJzgE1Tp0K4+EwItWL7Lgnl1QNReCHMsTg0cDk+TTG8zQ62qxw fbkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698154071; x=1698758871; 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=p7NxDbO7GUxLbtod+vtUf5vVuxdvzarRCEG44wnrlEM=; b=o6Hdg8jh9FjNZYco8/kTK1zB0skinbzWzQeDkfrLdFSWquaSZnI4ZS0qy0U75sd9Gl wD9Aj6hNWqtXhrz+BQt6riND+8rv6ZLYLutt5NJpfZ9SGXHxktoJPNdpDZ3W19W1ekLk sclwwcorw+iueQPx4t1w2A4EHZ6ejd7PsOXLAEyx3aTEmKV4aid243gHgVIA+1ERc04Z Es5NSgltF+j2q3egKb6AVf5vrSwKQi8diLISf0h0xx+EH9kzx1BaNNEwJOYk1SL37gqh MV5IdPvj0fbFQsCpUb9ZQLwor7JdrUFYw4iLn+m3o/hrUKLQ5sL+uZ0fU8NOFCJIc373 T3Ww== X-Gm-Message-State: AOJu0Yz4xEbgiixgtIDcnlSQJjU9RQHUqj0M/QH2lzTaw7JbN4/jzBGJ vs5rdvZCuSeEk99aXUcQl+dDiQ== X-Received: by 2002:a05:600c:2293:b0:403:334:fb0d with SMTP id 19-20020a05600c229300b004030334fb0dmr9098071wmf.4.1698154071124; Tue, 24 Oct 2023 06:27:51 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:597d:e2c5:6741:bac9]) by smtp.gmail.com with ESMTPSA id c17-20020a5d4151000000b0032d87b13240sm10034964wrq.73.2023.10.24.06.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:27:50 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Andrew Jones 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 v2 0/5] riscv: cleanup assembly usage of ENTRY()/END() and use local labels Date: Tue, 24 Oct 2023 15:26:50 +0200 Message-ID: <20231024132655.730417-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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 groat.vger.email 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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 06:35:04 -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. --- Changes in V2: - Remove duplicated SYM_FUNC_END(memmove) - Use SYM_DATA for simple .quad usage - Added Andrew Rb: 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 | 57 +++++++++---------- arch/riscv/lib/memset.S | 6 +- arch/riscv/lib/uaccess.S | 11 ++-- arch/riscv/purgatory/entry.S | 16 ++---- 19 files changed, 124 insertions(+), 143 deletions(-) -- 2.42.0