sparc64: Fix build errors with gcc-4.6.0
authorDavid S. Miller <davem@davemloft.net>
Sun, 27 Feb 2011 07:40:02 +0000 (23:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Mar 2011 01:19:15 +0000 (18:19 -0700)
commitc6fee0810df4e0f4cf9c4834d2569ca01c02cffc
tree7b6adabf750ca0279895f8b9aa8a42eb9837e4e2
parent0399bb5b918bd8ffbf065a3db142ff121aaa18e0
sparc64: Fix build errors with gcc-4.6.0

Most of the warnings emitted (we fail arch/sparc file
builds with -Werror) were legitimate but harmless, however
one case (n2_pcr_write) was a genuine bug.

Based almost entirely upon a patch by Sam Ravnborg.

Reported-by: Dennis Gilmore <dennis@ausil.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/iommu.c
arch/sparc/kernel/ldc.c
arch/sparc/kernel/pci.c
arch/sparc/kernel/pci_common.c
arch/sparc/kernel/pci_fire.c
arch/sparc/kernel/pci_schizo.c
arch/sparc/kernel/pci_sun4v.c
arch/sparc/kernel/pcr.c
arch/sparc/kernel/ptrace_64.c
arch/sparc/kernel/smp_64.c
arch/sparc/kernel/traps_64.c