Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 0/3] Switch to container_of_const() in macros
@ 2025-10-02 10:32 Sakari Ailus
  2025-10-02 10:32 ` [PATCH 1/3] media: v4l2-subdev: Make media_entity_to_v4l2_subdev() const-aware Sakari Ailus
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sakari Ailus @ 2025-10-02 10:32 UTC (permalink / raw)
  To: linux-media; +Cc: Laurent Pinchart, hans

Hi all,

This set switches to container_of_const(), in order to add constness check
for the users of macros obtaining a container struct of a struct field.

The good thing was that these patches didn't add any warnings but the
added checks will also prevent the issues from happening in the future,
too.

Sakari Ailus (3):
  media: v4l2-subdev: Make media_entity_to_v4l2_subdev() const-aware
  media: v4l2-dev: Make macros to obtain containers const-aware
  media: mc: Make macros to obtain containers const-aware

 include/media/media-entity.h | 10 +++++-----
 include/media/v4l2-dev.h     |  6 +++---
 include/media/v4l2-subdev.h  |  2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.47.3



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

end of thread, other threads:[~2025-10-02 10:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-02 10:32 [PATCH 0/3] Switch to container_of_const() in macros Sakari Ailus
2025-10-02 10:32 ` [PATCH 1/3] media: v4l2-subdev: Make media_entity_to_v4l2_subdev() const-aware Sakari Ailus
2025-10-02 10:32 ` [PATCH 2/3] media: v4l2-dev: Make macros to obtain containers const-aware Sakari Ailus
2025-10-02 10:32 ` [PATCH 3/3] media: mc: " Sakari Ailus
2025-10-02 10:32 ` [PATCH 3/3] media: v4l2-dev: " Sakari Ailus
2025-10-02 10:45   ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox