Skip to content

Commit

Permalink
[SPARC]: Mark linux_sparc_{fpu,chips} static.
Browse files Browse the repository at this point in the history
Caught by sparse.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Feb 29, 2008
1 parent be71716 commit c8edc89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/sparc/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct cpu_fp_info {
/* In order to get the fpu type correct, you need to take the IDPROM's
* machine type value into consideration too. I will fix this.
*/
struct cpu_fp_info linux_sparc_fpu[] = {
static struct cpu_fp_info linux_sparc_fpu[] = {
{ 0, 0, "Fujitsu MB86910 or Weitek WTL1164/5"},
{ 0, 1, "Fujitsu MB86911 or Weitek WTL1164/5 or LSI L64831"},
{ 0, 2, "LSI Logic L64802 or Texas Instruments ACT8847"},
Expand Down Expand Up @@ -76,7 +76,7 @@ struct cpu_fp_info linux_sparc_fpu[] = {

#define NSPARCFPU ARRAY_SIZE(linux_sparc_fpu)

struct cpu_iu_info linux_sparc_chips[] = {
static struct cpu_iu_info linux_sparc_chips[] = {
/* Sun4/100, 4/200, SLC */
{ 0, 0, "Fujitsu MB86900/1A or LSI L64831 SparcKIT-40"},
/* borned STP1012PGA */
Expand Down
4 changes: 2 additions & 2 deletions arch/sparc64/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct cpu_fp_info {
char* fp_name;
};

struct cpu_fp_info linux_sparc_fpu[] = {
static struct cpu_fp_info linux_sparc_fpu[] = {
{ 0x17, 0x10, 0, "UltraSparc I integrated FPU"},
{ 0x22, 0x10, 0, "UltraSparc I integrated FPU"},
{ 0x17, 0x11, 0, "UltraSparc II integrated FPU"},
Expand All @@ -46,7 +46,7 @@ struct cpu_fp_info linux_sparc_fpu[] = {

#define NSPARCFPU ARRAY_SIZE(linux_sparc_fpu)

struct cpu_iu_info linux_sparc_chips[] = {
static struct cpu_iu_info linux_sparc_chips[] = {
{ 0x17, 0x10, "TI UltraSparc I (SpitFire)"},
{ 0x22, 0x10, "TI UltraSparc I (SpitFire)"},
{ 0x17, 0x11, "TI UltraSparc II (BlackBird)"},
Expand Down

0 comments on commit c8edc89

Please sign in to comment.