Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ia64/PCI: Remove unused 'addr' and fix build warning

Ever since commit 240504adaf07 ("ia64/PCI: Keep CPU physical (not
virtual) addresses in shadow ROM resource") 'addr' has been unused,
resulting in the following compiler warning,

arch/ia64/sn/kernel/io_acpi_init.c: In function 'sn_acpi_slot_fixup':
arch/ia64/sn/kernel/io_acpi_init.c:429:16: warning: unused variable 'addr' [-Wunused-variable]
void __iomem *addr;
^

Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by

Matt Fleming and committed by
Tony Luck
1bba3ff9 18c25526

-1
-1
arch/ia64/sn/kernel/io_acpi_init.c
··· 426 426 void 427 427 sn_acpi_slot_fixup(struct pci_dev *dev) 428 428 { 429 - void __iomem *addr; 430 429 struct pcidev_info *pcidev_info = NULL; 431 430 struct sn_irq_info *sn_irq_info = NULL; 432 431 struct resource *res;