Skip to content

Commit

Permalink
[MIPS] IP32: Fix sparse warnings.
Browse files Browse the repository at this point in the history
    
Add __iomem qualifier to crime and mace pointers.
    
Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Arnaud Giersch authored and Ralf Baechle committed Nov 17, 2005
1 parent 84c493d commit 59f145d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/mips/sgi-ip32/crime.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <asm/ip32/crime.h>
#include <asm/ip32/mace.h>

struct sgi_crime *crime;
struct sgi_mace *mace;
struct sgi_crime __iomem *crime;
struct sgi_mace __iomem *mace;

EXPORT_SYMBOL_GPL(mace);

Expand Down
2 changes: 1 addition & 1 deletion include/asm-mips/ip32/crime.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct sgi_crime {
#define CRIME_MEM_ERROR_ECC_REPL_MASK 0xffffffff
};

extern struct sgi_crime *crime;
extern struct sgi_crime __iomem *crime;

#define CRIME_HI_MEM_BASE 0x40000000 /* this is where whole 1G of RAM is mapped */

Expand Down
2 changes: 1 addition & 1 deletion include/asm-mips/ip32/mace.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,6 @@ struct sgi_mace {
char _pad6[0x80000 - sizeof(struct mace_isa)];
};

extern struct sgi_mace *mace;
extern struct sgi_mace __iomem *mace;

#endif /* __ASM_MACE_H__ */

0 comments on commit 59f145d

Please sign in to comment.