mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
b01edcbd40
The functions that add an async subdev to an async subdev notifier take as an argument the size of the container structure they need to allocate. This is error prone, as passing an invalid size will not be caught by the compiler. Wrap those functions in macros that take a container type instead of a size, and cast the returned pointer to the desired type. The compiler will catch mistakes if the incorrect type is passed to the macro, as the assignment types won't match. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org> Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Helen Koike <helen.koike@collabora.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> (core+ti-cal) Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
xilinx-csi2rxss.c | ||
xilinx-dma.c | ||
xilinx-dma.h | ||
xilinx-tpg.c | ||
xilinx-vip.c | ||
xilinx-vip.h | ||
xilinx-vipp.c | ||
xilinx-vipp.h | ||
xilinx-vtc.c | ||
xilinx-vtc.h |