x86/altcall: hide casting away of const

ALT_CALL_PTR() really means to get rid of const (when necessary, i.e. when
used from apply_alt_calls()): We want to patch the original call site,
after all, and memory-wise that's unrelated to the struct alt_call * that
we start from.

No functional change intended.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger@xenproject.org>
This commit is contained in:
Jan Beulich committed 2026-09-07 10:41:04 +02:00
1 parent 1e204d768b
commit 74b0008044
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@
struct alt_call {
int32_t offset;
};
#define ALT_CALL_PTR(a) ((void *)&(a)->offset + (a)->offset)
#define ALT_CALL_PTR(a) ((void *)((long)&(a)->offset + (a)->offset))
#define ALT_CALL_LEN(a) (6)
/*
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.