diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-03-11 12:56:24 -0400 |
|---|---|---|
| committer | Scott Wood <scottwood@freescale.com> | 2015-03-31 23:23:18 -0400 |
| commit | bb65f5048ee34bd6a81288382ef0a608ccfcd914 (patch) | |
| tree | 2186c606a559fb215dd54962410871002a3af391 /arch/powerpc/sysdev | |
| parent | 016f8cf0d87bb2bda15ccb8708748a013c27423f (diff) | |
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>
Diffstat (limited to 'arch/powerpc/sysdev')
| -rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe_io.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/qe_io.c b/arch/powerpc/sysdev/qe_lib/qe_io.c index d09994164daf..7ea0174f6d3d 100644 --- a/arch/powerpc/sysdev/qe_lib/qe_io.c +++ b/arch/powerpc/sysdev/qe_lib/qe_io.c | |||
| @@ -190,28 +190,3 @@ int par_io_of_config(struct device_node *np) | |||
| 190 | return 0; | 190 | return 0; |
| 191 | } | 191 | } |
| 192 | EXPORT_SYMBOL(par_io_of_config); | 192 | EXPORT_SYMBOL(par_io_of_config); |
| 193 | |||
| 194 | #ifdef DEBUG | ||
| 195 | static void dump_par_io(void) | ||
| 196 | { | ||
| 197 | unsigned int i; | ||
| 198 | |||
| 199 | printk(KERN_INFO "%s: par_io=%p\n", __func__, par_io); | ||
| 200 | for (i = 0; i < num_par_io_ports; i++) { | ||
| 201 | printk(KERN_INFO " cpodr[%u]=%08x\n", i, | ||
| 202 | in_be32(&par_io[i].cpodr)); | ||
| 203 | printk(KERN_INFO " cpdata[%u]=%08x\n", i, | ||
| 204 | in_be32(&par_io[i].cpdata)); | ||
| 205 | printk(KERN_INFO " cpdir1[%u]=%08x\n", i, | ||
| 206 | in_be32(&par_io[i].cpdir1)); | ||
| 207 | printk(KERN_INFO " cpdir2[%u]=%08x\n", i, | ||
| 208 | in_be32(&par_io[i].cpdir2)); | ||
| 209 | printk(KERN_INFO " cppar1[%u]=%08x\n", i, | ||
| 210 | in_be32(&par_io[i].cppar1)); | ||
| 211 | printk(KERN_INFO " cppar2[%u]=%08x\n", i, | ||
| 212 | in_be32(&par_io[i].cppar2)); | ||
| 213 | } | ||
| 214 | |||
| 215 | } | ||
| 216 | EXPORT_SYMBOL(dump_par_io); | ||
| 217 | #endif /* DEBUG */ | ||
