[PATCH v2 4/5] drm/etnaviv: Reuse dma_fence_release.
Eric Anholt
eric at anholt.net
Wed May 3 16:03:21 UTC 2017
Lucas Stach <l.stach at pengutronix.de> writes:
> Hi Eric,
>
> Am Mittwoch, den 12.04.2017, 12:12 -0700 schrieb Eric Anholt:
>> If we follow the typical pattern of the base class being the first
>> member, we can use the default dma_fence_free function.
>
> Sorry, I don't like this change.
> While it provides a bit of code simplification, it also bakes the
> implicit assumption into the code that dma_fence is the first struct
> member without any checks to validate this assumption. I would at least
> expect a build bug assert, but then the current bit of code to keep this
> explicit and self-documenting is probably just as good.
Fine with me. Please make sure you grab patch 2, though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/etnaviv/attachments/20170503/59c8a837/attachment.sig>
More information about the etnaviv
mailing list