summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2020-10-28 13:37:52 +0100
committerMaxime Ripard <maxime@cerno.tech>2020-10-29 10:26:04 +0100
commit5066f42c7d3c7766c16ba6e73da514af04d43ff7 (patch)
tree1f5b1bada214c873fdf13f70c68ee62432a0cc93 /scripts/gcc-plugins/cyc_complexity_plugin.c
parenta3a0ded3ed38f4eafa86cef61799d50250da4dbe (diff)
drm/vc4: Rework the structure conversion functions
Most of the helpers to retrieve vc4 structures from the DRM base structures rely on the fact that the first member of the vc4 structure is the DRM one and just cast the pointers between them. However, this is pretty fragile especially since there's no check to make sure that the DRM structure is indeed at the offset 0 in the structure, so let's use container_of to make it more robust. Signed-off-by: Maxime Ripard <maxime@cerno.tech> Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201028123752.1733242-1-maxime@cerno.tech
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions