parisc/lib/: make code static
PATCH 1/2 parisc/lib/: make code static
From: Adrian Bunk <[email protected]>
Make the following needlessly global code static:
- iomap.c: struct iomap_ops[]
- memcpy.c: pa_memcpy()
Signed-off-by Adrian Bunk <[email protected]>
Cc Kyle McMartin <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Grant Grundler <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/parisc/lib/iomap.c | 2 +- arch/parisc/lib/memcpy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/parisc/lib/iomap.c renamed from arch/parisc/lib/iomap.c~parisc-lib-make-code-static +1 -1
@@ -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 };
arch/parisc/lib/memcpy.c renamed from arch/parisc/lib/memcpy.c~parisc-lib-make-code-static +1 -1
@@ -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) { registerunsigned long src, dst, t1, t2, t3; registerunsigned char *pcs, *pcd;
_