iscsi-target: don't export static symbol
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 11 Mar 2015 16:56:37 +0000 (17:56 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 20 Mar 2015 18:42:54 +0000 (11:42 -0700)
commit5bc6510f919be9875fbbea3d8c1f6f33f9265a31
tree739dd3be70407648b28bd6db18c72387cb3fd139
parent62554910a94a62f7b9b79cee3ca6bac95abe3c29
iscsi-target: 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: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c