mirror of https://gitee.com/openkylin/linux.git
[SPARC]: sunzilog warning fixes
From: William Lee Irwin III <wli@holomorphy.com> This small patch silences some iomem-related warnings in sunzilog.c by declaring mapped_addr as void __iomem * and inserting a cast in one case. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b3e112bcc1
commit
3761657853
|
@ -1071,7 +1071,7 @@ static void __init sunzilog_alloc_tables(void)
|
||||||
*/
|
*/
|
||||||
static struct zilog_layout __iomem * __init get_zs_sun4u(int chip, int zsnode)
|
static struct zilog_layout __iomem * __init get_zs_sun4u(int chip, int zsnode)
|
||||||
{
|
{
|
||||||
unsigned long mapped_addr;
|
void __iomem *mapped_addr;
|
||||||
unsigned int sun4u_ino;
|
unsigned int sun4u_ino;
|
||||||
struct sbus_bus *sbus = NULL;
|
struct sbus_bus *sbus = NULL;
|
||||||
struct sbus_dev *sdev = NULL;
|
struct sbus_dev *sdev = NULL;
|
||||||
|
@ -1111,9 +1111,9 @@ static struct zilog_layout __iomem * __init get_zs_sun4u(int chip, int zsnode)
|
||||||
apply_fhc_ranges(central_bus->child,
|
apply_fhc_ranges(central_bus->child,
|
||||||
&zsregs[0], 1);
|
&zsregs[0], 1);
|
||||||
apply_central_ranges(central_bus, &zsregs[0], 1);
|
apply_central_ranges(central_bus, &zsregs[0], 1);
|
||||||
mapped_addr =
|
mapped_addr = (void __iomem *)
|
||||||
(((u64)zsregs[0].which_io)<<32UL) |
|
((((u64)zsregs[0].which_io)<<32UL) |
|
||||||
((u64)zsregs[0].phys_addr);
|
((u64)zsregs[0].phys_addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zilog_irq == -1) {
|
if (zilog_irq == -1) {
|
||||||
|
|
Loading…
Reference in New Issue