From: Clément Léger <cleger@rivosinc.com>
To: 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 [thread overview]
Message-ID: <20231004143054.482091-1-cleger@rivosinc.com> (raw)
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
WARNING: multiple messages have this Message-ID (diff)
From: "Clément Léger" <cleger@rivosinc.com>
To: Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Anup Patel <anup@brainfault.org>,
Atish Patra <atishp@atishpatra.org>
Cc: "Clément Léger" <cleger@rivosinc.com>,
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 [thread overview]
Message-ID: <20231004143054.482091-1-cleger@rivosinc.com> (raw)
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
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: "Clément Léger" <cleger@rivosinc.com>
To: Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Anup Patel <anup@brainfault.org>,
Atish Patra <atishp@atishpatra.org>
Cc: "Clément Léger" <cleger@rivosinc.com>,
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 [thread overview]
Message-ID: <20231004143054.482091-1-cleger@rivosinc.com> (raw)
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
next reply other threads:[~2023-10-04 14:30 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-04 14:30 Clément Léger [this message]
2023-10-04 14:30 ` [PATCH 0/5] riscv: cleanup assembly usage of ENTRY()/END() and use local labels Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-04 14:30 ` [PATCH 1/5] riscv: use ".L" local labels in assembly when applicable Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-23 9:59 ` Andrew Jones
2023-10-23 9:59 ` Andrew Jones
2023-10-23 9:59 ` Andrew Jones
2023-10-04 14:30 ` [PATCH 2/5] riscv: Use SYM_*() assembly macros instead of deprecated ones Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-23 9:59 ` Andrew Jones
2023-10-23 9:59 ` Andrew Jones
2023-10-23 9:59 ` Andrew Jones
2023-10-23 10:08 ` Clément Léger
2023-10-23 10:08 ` Clément Léger
2023-10-23 10:08 ` Clément Léger
2023-10-04 14:30 ` [PATCH 3/5] riscv: kernel: Use correct SYM_DATA_*() macro for data Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-23 10:03 ` Andrew Jones
2023-10-23 10:03 ` Andrew Jones
2023-10-23 10:03 ` Andrew Jones
2023-10-04 14:30 ` [PATCH 4/5] riscv: kvm: Use SYM_*() assembly macros instead of deprecated ones Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-23 10:03 ` Andrew Jones
2023-10-23 10:03 ` Andrew Jones
2023-10-23 10:03 ` Andrew Jones
2023-10-04 14:30 ` [PATCH 5/5] riscv: kvm: use ".L" local labels in assembly when applicable Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-04 14:30 ` Clément Léger
2023-10-23 10:03 ` Andrew Jones
2023-10-23 10:03 ` Andrew Jones
2023-10-23 10:03 ` Andrew Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231004143054.482091-1-cleger@rivosinc.com \
--to=cleger@rivosinc.com \
--cc=kvm-riscv@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.