]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
parisc: lib/: make code static
authorAdrian Bunk <bunk@kernel.org>
Tue, 2 Dec 2008 03:28:15 +0000 (03:28 +0000)
committerKyle McMartin <kyle@mcmartin.ca>
Mon, 5 Jan 2009 18:15:24 +0000 (18:15 +0000)
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>
arch/parisc/lib/iomap.c
arch/parisc/lib/memcpy.c

index 9abed07db7fc0ded2b7e041c5e73f65e1911b211..5069e8b2ca712a85a437b495b1195aefda364a9c 100644 (file)
@@ -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
 };
index 2d68431fc22e98a818dd3ecaca049c93c9196d5e..bbda909c866e57c1327b6ccd47cf9bab8dc992d4 100644 (file)
@@ -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;