powerpc: don't export static symbol
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 11 Mar 2015 16:56:24 +0000 (17:56 +0100)
committerScott Wood <scottwood@freescale.com>
Wed, 1 Apr 2015 03:23:18 +0000 (22:23 -0500)
commitbb65f5048ee34bd6a81288382ef0a608ccfcd914
tree2186c606a559fb215dd54962410871002a3af391
parent016f8cf0d87bb2bda15ccb8708748a013c27423f
powerpc: 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>

Furthermore, the function is never used, so its definition is dropped as
well.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/qe_lib/qe_io.c