Skip to content

Commit c532242

Browse files
committed
fixup "arm64: mm: Force Device mappings for PCIe MMIO" for other architectures
Avoid the warning "no previous prototype for 'range_is_pci' when building for ARM or other architectures. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 8660845 commit c532242

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/resource.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ int __weak page_is_ram(unsigned long pfn)
567567
}
568568
EXPORT_SYMBOL_GPL(page_is_ram);
569569

570+
#ifdef CONFIG_ARM64
570571
static int pci_res_check(struct resource *res, void *arg)
571572
{
572573
if (!res->name)
@@ -598,6 +599,7 @@ bool range_is_pci(phys_addr_t phys_addr, size_t size)
598599
return false;
599600
}
600601
EXPORT_SYMBOL_GPL(range_is_pci);
602+
#endif
601603

602604
static int __region_intersects(struct resource *parent, resource_size_t start,
603605
size_t size, unsigned long flags,

0 commit comments

Comments
 (0)