From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Luck Date: Mon, 20 Aug 2018 16:31:04 +0000 Subject: [PATCH] ia64: Fix kernel BUG at lib/ioremap.c:72! Message-Id: <20180820163104.12879-1-tony.luck@intel.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linus Torvalds Cc: Tony Luck , linux-ia64@vger.kernel.org, Linux Kernel Mailing List , Arnd Bergmann , Boris Brezillon , Bjorn Helgaas , Sinan Kaya , Tomasz Nowicki , Lorenzo Pieralisi , Miquel Raynal Commit: 0bbf47eab469 ("ia64: use asm-generic/io.h") results in a BUG while booting ia64. This is because asm-generic/io.h defines PCI_IOBASE, which results in the function acpi_pci_root_remap_iospace() doing a lot of unnecessary (and wrong) things. I'd suggested an #if !CONFIG_IA64 in the functon, but Arnd suggested keeping the fix inside the arch/ia64 tree. Fixes: 0bbf47eab469 ("ia64: use asm-generic/io.h") Suggested-by: Arnd Bergman Signed-off-by: Tony Luck --- arch/ia64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 6f952171abf9..1e6fef69bb01 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -454,6 +454,7 @@ extern void memset_io(volatile void __iomem *s, int c, long n); #define xlate_dev_kmem_ptr xlate_dev_kmem_ptr #define xlate_dev_mem_ptr xlate_dev_mem_ptr #include +#undef PCI_IOBASE # endif /* __KERNEL__ */ -- 2.17.1