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

ia64: remove CONFIG_PCI ifdefs

Now that hpsim support is gone, CONFIG_PCI is forced on for ia64, and
we can remove a few ifdefs for it.

Acked-by: Tom Vaden <tom.vaden@hpe.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lkml.kernel.org/r/20190813072514.23299-19-hch@lst.de
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by

Christoph Hellwig and committed by
Tony Luck
768557ca fc5bad03

+3 -35
+1 -1
arch/ia64/Makefile
··· 57 57 core-$(CONFIG_IA64_HP_ZX1_SWIOTLB) += arch/ia64/dig/ 58 58 core-$(CONFIG_IA64_SGI_UV) += arch/ia64/uv/ 59 59 60 - drivers-$(CONFIG_PCI) += arch/ia64/pci/ 60 + drivers-y += arch/ia64/pci/ 61 61 drivers-$(CONFIG_IA64_HP_ZX1) += arch/ia64/hp/common/ arch/ia64/hp/zx1/ 62 62 drivers-$(CONFIG_IA64_HP_ZX1_SWIOTLB) += arch/ia64/hp/common/ arch/ia64/hp/zx1/ 63 63 drivers-$(CONFIG_IA64_GENERIC) += arch/ia64/hp/common/ arch/ia64/hp/zx1/ arch/ia64/uv/
+1 -9
arch/ia64/hp/common/sba_iommu.c
··· 251 251 static u64 prefetch_spill_page; 252 252 #endif 253 253 254 - #ifdef CONFIG_PCI 255 - # define GET_IOC(dev) ((dev_is_pci(dev)) \ 254 + #define GET_IOC(dev) ((dev_is_pci(dev)) \ 256 255 ? ((struct ioc *) PCI_CONTROLLER(to_pci_dev(dev))->iommu) : NULL) 257 - #else 258 - # define GET_IOC(dev) NULL 259 - #endif 260 256 261 257 /* 262 258 ** DMA_CHUNK_SIZE is used by the SCSI mid-layer to break up ··· 1737 1741 controller->iommu = ioc; 1738 1742 sac->sysdata = controller; 1739 1743 sac->dma_mask = 0xFFFFFFFFUL; 1740 - #ifdef CONFIG_PCI 1741 1744 sac->dev.bus = &pci_bus_type; 1742 - #endif 1743 1745 ioc->sac_only_dev = sac; 1744 1746 } 1745 1747 ··· 2115 2121 } 2116 2122 #endif 2117 2123 2118 - #ifdef CONFIG_PCI 2119 2124 { 2120 2125 struct pci_bus *b = NULL; 2121 2126 while ((b = pci_find_next_bus(b)) != NULL) 2122 2127 sba_connect_bus(b); 2123 2128 } 2124 - #endif 2125 2129 2126 2130 #ifdef CONFIG_PROC_FS 2127 2131 ioc_proc_init();
+1 -5
arch/ia64/include/asm/dma.h
··· 12 12 13 13 extern unsigned long MAX_DMA_ADDRESS; 14 14 15 - #ifdef CONFIG_PCI 16 - extern int isa_dma_bridge_buggy; 17 - #else 18 - # define isa_dma_bridge_buggy (0) 19 - #endif 15 + extern int isa_dma_bridge_buggy; 20 16 21 17 #define free_dma(x) 22 18
-18
arch/ia64/kernel/sys_ia64.c
··· 166 166 force_successful_syscall_return(); 167 167 return addr; 168 168 } 169 - 170 - #ifndef CONFIG_PCI 171 - 172 - asmlinkage long 173 - sys_pciconfig_read (unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, 174 - void *buf) 175 - { 176 - return -ENOSYS; 177 - } 178 - 179 - asmlinkage long 180 - sys_pciconfig_write (unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, 181 - void *buf) 182 - { 183 - return -ENOSYS; 184 - } 185 - 186 - #endif /* CONFIG_PCI */
-2
arch/ia64/mm/init.c
··· 632 632 BUG_ON(PTRS_PER_PMD * sizeof(pmd_t) != PAGE_SIZE); 633 633 BUG_ON(PTRS_PER_PTE * sizeof(pte_t) != PAGE_SIZE); 634 634 635 - #ifdef CONFIG_PCI 636 635 /* 637 636 * This needs to be called _after_ the command line has been parsed but _before_ 638 637 * any drivers that may need the PCI DMA interface are initialized or bootmem has 639 638 * been freed. 640 639 */ 641 640 platform_dma_init(); 642 - #endif 643 641 644 642 #ifdef CONFIG_FLATMEM 645 643 BUG_ON(!mem_map);