[PATCH 0/8] drm: fix .get_modes() return values
Jani Nikula
jani.nikula at intel.com
Wed Mar 13 11:47:51 UTC 2024
On Fri, 08 Mar 2024, Thomas Zimmermann <tzimmermann at suse.de> wrote:
> Acked-by: Thomas Zimmermann <tzimmermann at suse.de>
>
> for the series.
Thanks, pushed the lot to drm-misc-next-fixes.
> Do you plan to make the return type an unsigned int eventually?
Not really. The hooks could still return -ENOMEM or something, with no
compiler warnings, and you'd be screwed because you wouldn't even have a
way of checking. You'd just get 4294967284 modes.
BR,
Jani.
--
Jani Nikula, Intel
More information about the Intel-gfx
mailing list