Skip to content

Commit

Permalink
parisc: lib/: make code static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Kyle McMartin committed Jan 5, 2009
1 parent fe0bdec commit 8f47cb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/parisc/lib/iomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
2 changes: 1 addition & 1 deletion arch/parisc/lib/memcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static inline unsigned long copy_dstaligned(unsigned long dst, unsigned long src


/* 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;
Expand Down

0 comments on commit 8f47cb8

Please sign in to comment.