[PATCH] drm/vkms: Assert if vkms_config_create_*() fails
Dan Carpenter
dan.carpenter at linaro.org
Tue Aug 12 08:39:53 UTC 2025
On Mon, Aug 11, 2025 at 07:21:18PM +0200, Louis Chauvet wrote:
>
>
> Le 11/08/2025 à 12:15, José Expósito a écrit :
> > Check that the value returned by the vkms_config_create_*() functions is
> > valid. Otherwise, assert and finish the KUnit test.
> >
> > Reported-by: Dan Carpenter <dan.carpenter at linaro.org>
> > Closes: https://lore.kernel.org/dri-devel/aJTL6IFEBaI8gqtH@stanley.mountain/
> > Signed-off-by: José Expósito <jose.exposito89 at gmail.com>
>
> Reviewed-by: Louis Chauvet <louis.chauvet at bootlin.com>
>
> I am not sure on how to use smach, I don't have any warning at all for the
> whole kernel, so I will wait for Dan Carpenter review before applying.
>
Looks good. Thanks!
Reviewed-by: Dan Carpenter <dan.carpenter at linaro.org>
> Side question: should we use __must_check in this case to warn at compile
> time?
We wouldn't normally... It turns out the existing code was already
checking for errors so this is really just a "silence the checker"
patch.
regards,
dan carpenter
More information about the dri-devel
mailing list