linux/drivers/gpu/drm/virtio
Bhumika Goyal 91b39a4e28 drm/virtio: make drm_fb_helper_funcs const
Make these structures const as they are only passed to the function
drm_fb_helper_prepare and the corresponding argument is of type const.
Done using Coccinelle

@match disable optional_qualifier@
identifier s;
@@
static struct drm_fb_helper_funcs s = {...};

@ref@
position p;
identifier match.s;
@@
s@p

@good1@
identifier match.s;
expression e1,e2;
position ref.p;
@@
drm_fb_helper_prepare(e1,e2,&s@p,...)

@bad depends on  !good1@
position ref.p;
identifier match.s;
@@
s@p

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct drm_fb_helper_funcs s;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1502205245-17365-1-git-send-email-bhumirks@gmail.com
2017-08-09 18:38:56 +02:00
..
Kconfig drm: fix compilations issues introduced by "drm: allow to use mmuless SoC" 2017-01-09 11:30:30 +01:00
Makefile drm/virtio: fix include notation and remove -Iinclude/drm flag 2017-05-18 07:12:31 +02:00
virtgpu_debugfs.c drm/virtio: fix include notation and remove -Iinclude/drm flag 2017-05-18 07:12:31 +02:00
virtgpu_display.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
virtgpu_drm_bus.c drm: Remove drm_device->virtdev 2017-05-29 20:57:25 +02:00
virtgpu_drv.c drm/virtio: fix include notation and remove -Iinclude/drm flag 2017-05-18 07:12:31 +02:00
virtgpu_drv.h drm/virtio: fix include notation and remove -Iinclude/drm flag 2017-05-18 07:12:31 +02:00
virtgpu_fb.c drm/virtio: make drm_fb_helper_funcs const 2017-08-09 18:38:56 +02:00
virtgpu_fence.c dma-buf: Rename struct fence to dma_fence 2016-10-25 14:40:39 +02:00
virtgpu_gem.c drm: virtio: fix virtio_gpu_mode_dumb_create 2017-04-04 10:10:20 +02:00
virtgpu_ioctl.c drm: drop drm_[cm]alloc* helpers 2017-05-18 17:22:39 +02:00
virtgpu_kms.c drm: Remove drm_device->virtdev 2017-05-29 20:57:25 +02:00
virtgpu_object.c drm/virtio: don't leak bo on drm_gem_object_init failure 2017-04-07 13:29:17 +02:00
virtgpu_plane.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
virtgpu_prime.c virtio-gpu: add basic prime support 2015-10-16 10:44:02 +02:00
virtgpu_ttm.c drm: ttm: virtio-gpu: dma-buf: Constify ttm_place structures. 2017-07-03 10:31:14 +02:00
virtgpu_vq.c drm: virtio: fix kmem_cache_alloc error check 2017-03-14 11:54:19 +01:00