[media] media: pci: cx23885: don't export static symbol
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 11 Mar 2015 16:56:29 +0000 (13:56 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:21:53 +0000 (18:21 -0300)
commitfae119beddb5c102f117f7f4bd59803e0f6637df
tree10bf9f8df2c0bcb8fc4c32e6695df2c08dc6f1bb
parent073e24f5217019850ac586a8b93cf596c9e1900b
[media] media: pci: cx23885: don't export static symbol

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
type T;
identifier f;
@@

static T f (...) { ... }

@@
identifier r.f;
declarer name EXPORT_SYMBOL;
@@

-EXPORT_SYMBOL(f);
// </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@osg.samsung.com>
drivers/media/pci/cx23885/altera-ci.c