x86/domain: address Misra rule 11.1 violation in reset_stack_and_call_ind()

Eclair dislikes both sides of the comparison to differ in noreturn
attributes, thus deeming this a violation of "Conversions shall not be
performed between a pointer to a function and any other type". Since gcc
doesn't permit use of "noreturn" types used in a typecast, resort to
typeof().

No functional change intended.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
This commit is contained in:
Jan Beulich committed 2026-09-21 09:58:31 +02:00
1 parent b0597289eb
commit 9fd71d2257
1 file changed
+1 -1
+1 -1
View File
@@ -208,7 +208,7 @@ unsigned long get_stack_dump_bottom (unsigned long sp);
/* The constraint may only specify non-call-clobbered registers. */
#define reset_stack_and_call_ind(fn) \
({ \
(void)((fn) == (void (*)(void))NULL); \
(void)((fn) == (typeof(dom_xen->arch.ctxt_switch->tail))NULL); \
switch_stack_and_jump(fn, "INDIRECT_CALL %", "b"); \
})
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.