Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759966AbYFOQPz (ORCPT ); Sun, 15 Jun 2008 12:15:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759045AbYFOQPG (ORCPT ); Sun, 15 Jun 2008 12:15:06 -0400 Received: from smtp5.pp.htv.fi ([213.243.153.39]:40794 "EHLO smtp5.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759049AbYFOQOx (ORCPT ); Sun, 15 Jun 2008 12:14:53 -0400 Date: Sun, 15 Jun 2008 19:13:35 +0300 From: Adrian Bunk To: kyle@mcmartin.ca, matthew@wil.cx, grundler@parisc-linux.org Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [2.6 patch] parisc/lib/: make code static Message-ID: <20080615161335.GE7865@cs181133002.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1479 Lines: 44 This patch makes the following needlessly global code static: - iomap.c: struct iomap_ops[] - memcpy.c: pa_memcpy() Signed-off-by: Adrian Bunk --- arch/parisc/lib/iomap.c | 2 +- arch/parisc/lib/memcpy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 45e7cd0b2c678dda4f5ba4ac6d0ed628df9381bd diff --git a/arch/parisc/lib/iomap.c b/arch/parisc/lib/iomap.c index 9abed07..5069e8b 100644 --- a/arch/parisc/lib/iomap.c +++ b/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 --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c index 2d68431..bbda909 100644 --- a/arch/parisc/lib/memcpy.c +++ b/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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/