mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
b4a671acf1
commit
a36bde9a3a
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||