From: Grant Grundler <grundler@parisc-linux.org>
To: akpm@linux-foundation.org
Cc: kyle@mcmartin.ca, linux-parisc@vger.kernel.org, bunk@kernel.org,
grundler@parisc-linux.org, matthew@wil.cx
Subject: Re: [patch 1/3] parisc/lib/: make code static
Date: Mon, 1 Dec 2008 22:45:42 -0700 [thread overview]
Message-ID: <20081202054542.GC32569@colo.lackof.org> (raw)
In-Reply-To: <200812012228.mB1MSF7t017234@imap1.linux-foundation.org>
On Mon, Dec 01, 2008 at 02:28:15PM -0800, akpm@linux-foundation.org wrote:
> From: Adrian Bunk <bunk@kernel.org>
>
> 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: Kyle McMartin <kyle@mcmartin.ca>
> Cc: Matthew Wilcox <matthew@wil.cx>
> Cc: Grant Grundler <grundler@parisc-linux.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
thanks,
grant
> ---
>
> arch/parisc/lib/iomap.c | 2 +-
> arch/parisc/lib/memcpy.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff -puN arch/parisc/lib/iomap.c~parisc-lib-make-code-static arch/parisc/lib/iomap.c
> --- a/arch/parisc/lib/iomap.c~parisc-lib-make-code-static
> +++ a/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 -puN arch/parisc/lib/memcpy.c~parisc-lib-make-code-static arch/parisc/lib/memcpy.c
> --- a/arch/parisc/lib/memcpy.c~parisc-lib-make-code-static
> +++ a/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;
> _
prev parent reply other threads:[~2008-12-02 5:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 22:28 [patch 1/3] parisc/lib/: make code static akpm
2008-12-02 5:45 ` Grant Grundler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081202054542.GC32569@colo.lackof.org \
--to=grundler@parisc-linux.org \
--cc=akpm@linux-foundation.org \
--cc=bunk@kernel.org \
--cc=kyle@mcmartin.ca \
--cc=linux-parisc@vger.kernel.org \
--cc=matthew@wil.cx \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox