Patchwork mips-dis: Add missing static attributes

login
register
mail settings
Submitter Stefan Weil
Date May 7, 2010, 9:20 p.m.
Message ID <1273267256-23205-1-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/51957/
State New
Headers show

Comments

Stefan Weil - May 7, 2010, 9:20 p.m.
mips_abi_choices and mips_arch_choices are only used locally.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 mips-dis.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Blue Swirl - May 9, 2010, 7:03 a.m.
Thanks, applied.

On 5/8/10, Stefan Weil <weil@mail.berlios.de> wrote:
> mips_abi_choices and mips_arch_choices are only used locally.
>
>  Signed-off-by: Stefan Weil <weil@mail.berlios.de>
>  ---
>   mips-dis.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
>  diff --git a/mips-dis.c b/mips-dis.c
>
> index 169169c..ae64543 100644
>
> --- a/mips-dis.c
>  +++ b/mips-dis.c
>  @@ -3035,7 +3035,7 @@ struct mips_abi_choice
>    const char * const *fpr_names;
>   };
>
>  -struct mips_abi_choice mips_abi_choices[] =
>  +static struct mips_abi_choice mips_abi_choices[] =
>   {
>    { "numeric", mips_gpr_names_numeric, mips_fpr_names_numeric },
>    { "32", mips_gpr_names_oldabi, mips_fpr_names_32 },
>  @@ -3086,7 +3086,7 @@ struct mips_arch_choice
>
>   #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
>
>
> -const struct mips_arch_choice mips_arch_choices[] =
>  +static const struct mips_arch_choice mips_arch_choices[] =
>   {
>    { "numeric", 0, 0, 0, 0,
>      mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
>  --
>  1.7.0
>
>

Patch

diff --git a/mips-dis.c b/mips-dis.c
index 169169c..ae64543 100644
--- a/mips-dis.c
+++ b/mips-dis.c
@@ -3035,7 +3035,7 @@  struct mips_abi_choice
   const char * const *fpr_names;
 };
 
-struct mips_abi_choice mips_abi_choices[] =
+static struct mips_abi_choice mips_abi_choices[] =
 {
   { "numeric", mips_gpr_names_numeric, mips_fpr_names_numeric },
   { "32", mips_gpr_names_oldabi, mips_fpr_names_32 },
@@ -3086,7 +3086,7 @@  struct mips_arch_choice
 
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
 
-const struct mips_arch_choice mips_arch_choices[] =
+static const struct mips_arch_choice mips_arch_choices[] =
 {
   { "numeric",	0, 0, 0, 0,
     mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },