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