EDAC, i82443bxgx: Don't export static symbol
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 11 Mar 2015 16:56:34 +0000 (17:56 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 11 Mar 2015 19:39:15 +0000 (20:39 +0100)
commit18b44b2b950a0746abe7466021e842c6d7e96443
tree2fffe4f1ca226450c86004f9223c9741cc6d45c1
parent2ec591ac7422048f6148c762d6cb8fb96d9a290b
EDAC, i82443bxgx: 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_GPL;
@@

-EXPORT_SYMBOL_GPL(f);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Tim Small <tim@buttersideup.com>
Link: http://lkml.kernel.org/r/1426092997-30605-13-git-send-email-Julia.Lawall@lip6.fr
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/i82443bxgx_edac.c