Arm/alternative: hide casting away of const

We want to patch the original call site, which memory-wise is unrelated
to the struct alt_instr * that we start from.

No functional change intended.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
Jan Beulich committed 2026-09-03 10:59:51 +02:00
1 parent b4a671acf1
commit a36bde9a3a
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ static int __apply_alternatives(const struct alt_region *region,
BUG_ON(alt->repl_len != alt->orig_len);
origptr = ALT_ORIG_PTR(alt);
updptr = (void *)origptr + update_offset;
updptr = (void *)(unsigned long)origptr + update_offset;
nr_inst = alt->orig_len / ARCH_PATCH_INSN_SIZE;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.