[PATCH] coccinelle: api: fix kobj_to_dev.cocci warnings

Markus Elfring Markus.Elfring at web.de
Thu Aug 27 17:03:23 UTC 2020


> Generated by: scripts/coccinelle/api/kobj_to_dev.cocci
>
> Fixes: a2fc3718bc22 ("coccinelle: api: add kobj_to_dev.cocci script")

I wonder about such a combination of information.

I find it reasonable that two function implementations should be adjusted
according to a generated patch.
Thus I imagine that not the mentioned SmPL script is “fixed”
but the affected source file “drivers/video/fbdev/udlfb.c” may be improved.
Will the subject “[PATCH] video: udlfb: Fix kobj_to_dev.cocci warnings”
(or “[PATCH] video: udlfb: Use kobj_to_dev() instead of container_of()”)
be more appropriate for the proposed commit message?

Regards,
Markus


More information about the dri-devel mailing list