All of lore.kernel.org
 help / color / mirror / Atom feed
* struct mctelem_cookie missing definition
@ 2025-02-13  1:25 Stefano Stabellini
  2025-02-13  1:34 ` Andrew Cooper
  0 siblings, 1 reply; 21+ messages in thread
From: Stefano Stabellini @ 2025-02-13  1:25 UTC (permalink / raw)
  To: xen-devel; +Cc: sstabellini, Jan Beulich, Andrew Cooper, Roger Pau Monné

Hi all,

I am looking through the few remaining MISRA violations that we have
left.  One of them is R11.2:

https://saas.eclairit.com:3787/fs/var/local/eclair/xen-project.ecdf/xen-project/hardware/xen/ECLAIR_normal/staging/X86_64/9118578464/PROJECT.ecd;/by_service/MC3A2.R11.2.html#{%22select%22:true,%22selection%22:{%22hiddenAreaKinds%22:[],%22hiddenSubareaKinds%22:[],%22show%22:false,%22selector%22:{%22enabled%22:true,%22negated%22:true,%22kind%22:0,%22domain%22:%22kind%22,%22inputs%22:[{%22enabled%22:true,%22text%22:%22violation%22}]}}}

Specifically, mctelem_cookie_t is a pointer to incomplete type and
therefore COOKIE2MCTE triggers a "conversion between a pointer to an
incomplete type and any other type".

mctelem_cookie_t is defined as:

typedef struct mctelem_cookie *mctelem_cookie_t;

I am looking through the code and I genuinely cannot find the definition
of struct mctelem_cookie.

If mctelem_cookie_t is only used as a pointer, wouldn't it make more
sense to do:

typedef struct mctelem_ent *mctelem_cookie_t;

?

What am I missing?

Cheers,

Stefano


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

end of thread, other threads:[~2025-02-19 11:05 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13  1:25 struct mctelem_cookie missing definition Stefano Stabellini
2025-02-13  1:34 ` Andrew Cooper
2025-02-13  1:39   ` Stefano Stabellini
2025-02-13  2:00     ` Stefano Stabellini
2025-02-13  7:47       ` Jan Beulich
2025-02-13 21:47         ` Stefano Stabellini
2025-02-14  3:00           ` Stefano Stabellini
2025-02-14  7:39             ` Jan Beulich
2025-02-14  7:46             ` Nicola Vetrini
2025-02-14  7:55               ` Jan Beulich
2025-02-14 23:04                 ` Stefano Stabellini
2025-02-15  8:59                   ` Nicola Vetrini
2025-02-17  7:47                     ` Jan Beulich
2025-02-18  2:45                       ` Stefano Stabellini
2025-02-18  3:11                         ` Stefano Stabellini
2025-02-18 11:29                         ` Jan Beulich
2025-02-18 21:37                           ` Stefano Stabellini
2025-02-19  7:53                             ` Jan Beulich
2025-02-19 11:05                             ` Nicola Vetrini
2025-02-14  7:18           ` Jan Beulich
2025-02-13  7:34   ` Jan Beulich

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.