]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c58dac36e21423502058b70705c53de57babbb2
tree2186c606a559fb215dd54962410871002a3af391
parent10d6064fa44327b69e5865b97726d79e96023a2b
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