All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/MCE: adjust ID2COOKIE() for Misra C:2012 rule 11.2
@ 2026-05-13 14:03 Jan Beulich
  2026-05-13 17:00 ` Andrew Cooper
  2026-05-13 20:47 ` Nicola Vetrini
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Beulich @ 2026-05-13 14:03 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org
  Cc: Andrew Cooper, Roger Pau Monné, Teddy Astie

... ("Conversions shall not be performed between a pointer to an
incomplete type and any other type"): Add an intermediate cat to void *.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14351897188
(covering more than just this)

--- a/xen/arch/x86/cpu/mcheck/mce.c
+++ b/xen/arch/x86/cpu/mcheck/mce.c
@@ -1264,7 +1264,7 @@ static void cf_check __maybe_unused x86_
 
 #if BITS_PER_LONG == 64
 
-#define ID2COOKIE(id) ((mctelem_cookie_t)(id))
+#define ID2COOKIE(id) ((mctelem_cookie_t)(void *)(id))
 #define COOKIE2ID(c) ((uint64_t)(c))
 
 #elif defined(BITS_PER_LONG)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-15  6:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 14:03 [PATCH] x86/MCE: adjust ID2COOKIE() for Misra C:2012 rule 11.2 Jan Beulich
2026-05-13 17:00 ` Andrew Cooper
2026-05-15  6:26   ` Jan Beulich
2026-05-13 20:47 ` Nicola Vetrini
2026-05-15  6:28   ` Jan Beulich
2026-05-15  6:33     ` Nicola Vetrini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.