mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 18:55:05 +07:00
d777478599
Static structure fb_funcs, of type drm_framebuffer_funcs, is used only when it is passed to drm_gem_fb_create_with_funcs() as its last argument. drm_gem_fb_create_with_funcs does not modify its lst argument (fb_funcs) and hence fb_funcs is never modified. Therefore make fb_funcs constant to protect it from further modification. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190813062712.24993-1-nishkadg.linux@gmail.com |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
xen_drm_front_cfg.c | ||
xen_drm_front_cfg.h | ||
xen_drm_front_conn.c | ||
xen_drm_front_conn.h | ||
xen_drm_front_evtchnl.c | ||
xen_drm_front_evtchnl.h | ||
xen_drm_front_gem.c | ||
xen_drm_front_gem.h | ||
xen_drm_front_kms.c | ||
xen_drm_front_kms.h | ||
xen_drm_front.c | ||
xen_drm_front.h |