On Mon, Dec 01, 2008 at 02:28:15PM -0800, akpm@xxxxxxxxxxxxxxxxxxxx wrote: > From: Adrian Bunk <bunk@xxxxxxxxxx> > > Make the following needlessly global code static: > > - iomap.c: struct iomap_ops[] > - memcpy.c: pa_memcpy() > > Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx> > Cc: Kyle McMartin <kyle@xxxxxxxxxxx> > Cc: Matthew Wilcox <matthew@xxxxxx> > Cc: Grant Grundler <grundler@xxxxxxxxxxxxxxxx> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Reviewed-by: Grant Grundler <grundler@xxxxxxxxxxxxxxxx> thanks, grant > --- > > arch/parisc/lib/iomap.c | 2 +- > arch/parisc/lib/memcpy.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff -puN arch/parisc/lib/iomap.c~parisc-lib-make-code-static arch/parisc/lib/iomap.c > --- a/arch/parisc/lib/iomap.c~parisc-lib-make-code-static > +++ a/arch/parisc/lib/iomap.c > @@ -261,7 +261,7 @@ static const struct iomap_ops iomem_ops > iomem_write32r, > }; > > -const struct iomap_ops *iomap_ops[8] = { > +static const struct iomap_ops *iomap_ops[8] = { > [0] = &ioport_ops, > [7] = &iomem_ops > }; > diff -puN arch/parisc/lib/memcpy.c~parisc-lib-make-code-static arch/parisc/lib/memcpy.c > --- a/arch/parisc/lib/memcpy.c~parisc-lib-make-code-static > +++ a/arch/parisc/lib/memcpy.c > @@ -275,7 +275,7 @@ handle_store_error: > > > /* Returns 0 for success, otherwise, returns number of bytes not transferred. */ > -unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len) > +static unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len) > { > register unsigned long src, dst, t1, t2, t3; > register unsigned char *pcs, *pcd; > _ -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html