mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
63f2ec67fa
These videobuf_queue_ops structures are only passed as the second argument to videobuf_queue_vmalloc_init, which is declared as const. Thus the videobuf_queue_ops structures themselves can be const. Done with the help of Coccinelle. // <smpl> @r disable optional_qualifier@ identifier i; position p; @@ static struct videobuf_queue_ops i@p = { ... }; @ok1@ identifier r.i; expression e1; position p; @@ videobuf_queue_vmalloc_init(e1,&i@p,...) @bad@ position p != {r.p,ok1.p}; identifier r.i; struct videobuf_queue_ops e; @@ e@i@p @depends on !bad disable optional_qualifier@ identifier r.i; @@ static +const struct videobuf_queue_ops i = { ... }; // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
tm6000-alsa.c | ||
tm6000-cards.c | ||
tm6000-core.c | ||
tm6000-dvb.c | ||
tm6000-i2c.c | ||
tm6000-input.c | ||
tm6000-regs.h | ||
tm6000-stds.c | ||
tm6000-usb-isoc.h | ||
tm6000-video.c | ||
tm6000.h |