Skip to content

Commit bb65f50

Browse files
JuliaLawallScott Wood
authored andcommitted
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>
1 parent 016f8cf commit bb65f50

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

‎arch/powerpc/sysdev/qe_lib/qe_io.c‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -190,28 +190,3 @@ int par_io_of_config(struct device_node *np)
190190
return 0;
191191
}
192192
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 */

0 commit comments

Comments
 (0)