Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: lib/: make code static

Make the following needlessly global code static:

- iomap.c: struct iomap_ops[]
- memcpy.c: pa_memcpy()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

authored by

Adrian Bunk and committed by
Kyle McMartin
8f47cb87 fe0bdec6

+2 -2
+1 -1
arch/parisc/lib/iomap.c
··· 261 261 iomem_write32r, 262 262 }; 263 263 264 - const struct iomap_ops *iomap_ops[8] = { 264 + static const struct iomap_ops *iomap_ops[8] = { 265 265 [0] = &ioport_ops, 266 266 [7] = &iomem_ops 267 267 };
+1 -1
arch/parisc/lib/memcpy.c
··· 275 275 276 276 277 277 /* Returns 0 for success, otherwise, returns number of bytes not transferred. */ 278 - unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len) 278 + static unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len) 279 279 { 280 280 register unsigned long src, dst, t1, t2, t3; 281 281 register unsigned char *pcs, *pcd;