Switch to container_of_const() in macros
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | media: v4l2-subdev: Make media_entity_to_v4l2_subdev() const-awareinclude/ | +1 | 0 replies | |
| 2/3 | media: v4l2-dev: Make macros to obtain containers const-awareinclude/ | +3 | 0 replies | |
| 3/3 | media: mc: Make macros to obtain containers const-awareinclude/ | +5 | 0 replies | |
| 3/3 | media: v4l2-dev: Make macros to obtain containers const-awareinclude/ | +5 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Switch to container_of_const() in macros
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(-)
Signature · 1 line
2.47.3