mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
UPSTREAM: iscsi_ibft: Fix isa_bus_to_virt not working under ARM
The isa_bus_to_virt is only needed under X86 and in fact the code
that sets the ibft_phys_addr is only compiled under X86.
As such lets just ifdef the code.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Vijayendra Suman <vijayendra.suman@oracle.com>
CC: Maurizio Lombardi <mlombard@redhat.com>
CC: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Change-Id: I68b691cbd2f9f44fe8c876a303c5e4a2c38df82b
---
v2: Remove the ibft_phys_addr as it is defined in iscsi_ibft.h
(cherry picked from commit 799206c130)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
472bc2ccab
commit
6c78a36ce6
@@ -86,10 +86,6 @@ MODULE_VERSION(IBFT_ISCSI_VERSION);
|
||||
|
||||
static struct acpi_table_ibft *ibft_addr;
|
||||
|
||||
#ifndef CONFIG_ISCSI_IBFT_FIND
|
||||
phys_addr_t ibft_phys_addr;
|
||||
#endif
|
||||
|
||||
struct ibft_hdr {
|
||||
u8 id;
|
||||
u8 version;
|
||||
@@ -851,7 +847,21 @@ static void __init acpi_find_ibft_region(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ISCSI_IBFT_FIND
|
||||
static int __init acpi_find_isa_region(void)
|
||||
{
|
||||
if (ibft_phys_addr) {
|
||||
ibft_addr = isa_bus_to_virt(ibft_phys_addr);
|
||||
return 0;
|
||||
}
|
||||
return -ENODEV;
|
||||
}
|
||||
#else
|
||||
static int __init acpi_find_isa_region(void)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* ibft_init() - creates sysfs tree entries for the iBFT data.
|
||||
*/
|
||||
@@ -864,9 +874,7 @@ static int __init ibft_init(void)
|
||||
is called before ACPI tables are parsed and it only does
|
||||
legacy finding.
|
||||
*/
|
||||
if (ibft_phys_addr)
|
||||
ibft_addr = isa_bus_to_virt(ibft_phys_addr);
|
||||
else
|
||||
if (acpi_find_isa_region())
|
||||
acpi_find_ibft_region();
|
||||
|
||||
if (ibft_addr) {
|
||||
|
||||
Reference in New Issue
Block a user