Skip to contentSkip to conversation

mips-dis: Add missing static attributes

PATCH In review Stefan Weil 2 participants 4 messages May 6, 2010 – May 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips-dis: Add missing static attributes

mips_abi_choices and mips_arch_choices are only used locally.

---
 mips-dis.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
mips-dis.c +2 -2
index 56bffe5..4623a1c 100644
@@ -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 },
Signature · 1 line
1.7.0
#1 lore raw
Quoted 15 lines · Stefan Weil

mips_abi_choices and mips_arch_choices are only used locally.

---

  mips-dis.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mips-dis.c b/mips-dis.c
index 56bffe5..4623a1c 100644
--- a/mips-dis.c
+++ b/mips-dis.c
@@ -3035,7 +3035,7 @@ struct mips_abi_choice
const char * const *fpr_names;
};

Quoted 8 lines

-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]))

The patch does not apply because the line above does not match HEAD.

Quoted 12 lines

-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

#2 lore raw

PATCH 1/1 mips-dis: Add missing static attributes

mips_abi_choices and mips_arch_choices are only used locally.

---
 mips-dis.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
mips-dis.c +2 -2
index 169169c..ae64543 100644
@@ -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 },
Signature · 1 line
1.7.0
Applied
#3 lore raw

Thanks, applied.

Quoted 36 lines · Stefan Weil

mips_abi_choices and mips_arch_choices are only used locally.

---

  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