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

treewide: simplify Kconfig dependencies for removed archs

A lot of Kconfig symbols have architecture specific dependencies.
In those cases that depend on architectures we have already removed,
they can be omitted.

Acked-by: Kalle Valo <kvalo@codeaurora.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+31 -77
+1 -1
block/bounce.c
··· 31 31 static struct bio_set *bounce_bio_set, *bounce_bio_split; 32 32 static mempool_t *page_pool, *isa_page_pool; 33 33 34 - #if defined(CONFIG_HIGHMEM) || defined(CONFIG_NEED_BOUNCE_POOL) 34 + #if defined(CONFIG_HIGHMEM) 35 35 static __init int init_emergency_pool(void) 36 36 { 37 37 #if defined(CONFIG_HIGHMEM) && !defined(CONFIG_MEMORY_HOTPLUG)
+1 -1
drivers/ide/Kconfig
··· 200 200 201 201 config IDE_GENERIC 202 202 tristate "generic/default IDE chipset support" 203 - depends on ALPHA || X86 || IA64 || M32R || MIPS || ARCH_RPC 203 + depends on ALPHA || X86 || IA64 || MIPS || ARCH_RPC 204 204 default ARM && ARCH_RPC 205 205 help 206 206 This is the generic IDE driver. This driver attaches to the
+1 -11
drivers/ide/ide-generic.c
··· 13 13 #include <linux/ide.h> 14 14 #include <linux/pci_ids.h> 15 15 16 - /* FIXME: convert arm and m32r to use ide_platform host driver */ 16 + /* FIXME: convert arm to use ide_platform host driver */ 17 17 #ifdef CONFIG_ARM 18 18 #include <asm/irq.h> 19 - #endif 20 - #ifdef CONFIG_M32R 21 - #include <asm/m32r.h> 22 19 #endif 23 20 24 21 #define DRV_NAME "ide_generic" ··· 32 35 #ifdef CONFIG_ARM 33 36 static const u16 legacy_bases[] = { 0x1f0 }; 34 37 static const int legacy_irqs[] = { IRQ_HARDDISK }; 35 - #elif defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_MAPPI2) || \ 36 - defined(CONFIG_PLAT_OPSPUT) 37 - static const u16 legacy_bases[] = { 0x1f0 }; 38 - static const int legacy_irqs[] = { PLD_IRQ_CFIREQ }; 39 - #elif defined(CONFIG_PLAT_MAPPI3) 40 - static const u16 legacy_bases[] = { 0x1f0, 0x170 }; 41 - static const int legacy_irqs[] = { PLD_IRQ_CFIREQ, PLD_IRQ_IDEIREQ }; 42 38 #elif defined(CONFIG_ALPHA) 43 39 static const u16 legacy_bases[] = { 0x1f0, 0x170, 0x1e8, 0x168 }; 44 40 static const int legacy_irqs[] = { 14, 15, 11, 10 };
+1 -1
drivers/input/joystick/analog.c
··· 163 163 #define GET_TIME(x) do { x = (unsigned int)rdtsc(); } while (0) 164 164 #define DELTA(x,y) ((y)-(x)) 165 165 #define TIME_NAME "TSC" 166 - #elif defined(__alpha__) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV) || defined(CONFIG_TILE) 166 + #elif defined(__alpha__) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV) 167 167 #define GET_TIME(x) do { x = get_cycles(); } while (0) 168 168 #define DELTA(x,y) ((y)-(x)) 169 169 #define TIME_NAME "get_cycles"
+5 -5
drivers/isdn/hisax/Kconfig
··· 109 109 110 110 config HISAX_TELESPCI 111 111 bool "Teles PCI" 112 - depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN))) 112 + depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN))) 113 113 help 114 114 This enables HiSax support for the Teles PCI. 115 115 See <file:Documentation/isdn/README.HiSax> on how to configure it. ··· 237 237 238 238 config HISAX_NETJET 239 239 bool "NETjet card" 240 - depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE)) 240 + depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE)) 241 241 depends on VIRT_TO_BUS 242 242 help 243 243 This enables HiSax support for the NetJet from Traverse ··· 249 249 250 250 config HISAX_NETJET_U 251 251 bool "NETspider U card" 252 - depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE)) 252 + depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE)) 253 253 depends on VIRT_TO_BUS 254 254 help 255 255 This enables HiSax support for the Netspider U interface ISDN card ··· 318 318 319 319 config HISAX_HFC_PCI 320 320 bool "HFC PCI-Bus cards" 321 - depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN))) 321 + depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN))) 322 322 help 323 323 This enables HiSax support for the HFC-S PCI 2BDS0 based cards. 324 324 ··· 343 343 344 344 config HISAX_ENTERNOW_PCI 345 345 bool "Formula-n enter:now PCI card" 346 - depends on HISAX_NETJET && PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN))) 346 + depends on HISAX_NETJET && PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN))) 347 347 help 348 348 This enables HiSax support for the Formula-n enter:now PCI 349 349 ISDN card.
+1 -1
drivers/net/ethernet/davicom/Kconfig
··· 4 4 5 5 config DM9000 6 6 tristate "DM9000 support" 7 - depends on ARM || BLACKFIN || MIPS || COLDFIRE || NIOS2 7 + depends on ARM || MIPS || COLDFIRE || NIOS2 8 8 select CRC32 9 9 select MII 10 10 ---help---
+3 -3
drivers/net/ethernet/smsc/Kconfig
··· 5 5 config NET_VENDOR_SMSC 6 6 bool "SMC (SMSC)/Western Digital devices" 7 7 default y 8 - depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \ 9 - ISA || M32R || MAC || MIPS || NIOS2 || PCI || \ 8 + depends on ARM || ARM64 || ATARI_ETHERNAT || COLDFIRE || \ 9 + ISA || MAC || MIPS || NIOS2 || PCI || \ 10 10 PCMCIA || SUPERH || XTENSA || H8300 11 11 ---help--- 12 12 If you have a network (Ethernet) card belonging to this class, say Y. ··· 37 37 select CRC32 38 38 select MII 39 39 depends on !OF || GPIOLIB 40 - depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \ 40 + depends on ARM || ARM64 || ATARI_ETHERNAT || COLDFIRE || \ 41 41 M32R || MIPS || NIOS2 || SUPERH || XTENSA || H8300 42 42 ---help--- 43 43 This is a driver for SMC's 91x series of Ethernet chipsets,
+1 -1
drivers/net/wireless/cisco/Kconfig
··· 33 33 34 34 config AIRO_CS 35 35 tristate "Cisco/Aironet 34X/35X/4500/4800 PCMCIA cards" 36 - depends on CFG80211 && PCMCIA && (BROKEN || !M32R) 36 + depends on CFG80211 && PCMCIA 37 37 select WIRELESS_EXT 38 38 select WEXT_SPY 39 39 select WEXT_PRIV
+1 -1
drivers/pwm/Kconfig
··· 43 43 44 44 config PWM_ATMEL 45 45 tristate "Atmel PWM support" 46 - depends on ARCH_AT91 || AVR32 46 + depends on ARCH_AT91 47 47 help 48 48 Generic PWM framework driver for Atmel SoC. 49 49
+1 -1
drivers/rtc/Kconfig
··· 868 868 869 869 config RTC_DRV_CMOS 870 870 tristate "PC-style 'CMOS'" 871 - depends on X86 || ARM || M32R || PPC || MIPS || SPARC64 871 + depends on X86 || ARM || PPC || MIPS || SPARC64 872 872 default y if X86 873 873 select RTC_MC146818_LIB 874 874 help
+2 -2
drivers/spi/Kconfig
··· 72 72 config SPI_ATMEL 73 73 tristate "Atmel SPI Controller" 74 74 depends on HAS_DMA 75 - depends on (ARCH_AT91 || AVR32 || COMPILE_TEST) 75 + depends on ARCH_AT91 || COMPILE_TEST 76 76 help 77 77 This selects a driver for the Atmel SPI Controller, present on 78 - many AT32 (AVR32) and AT91 (ARM) chips. 78 + many AT91 ARM chips. 79 79 80 80 config SPI_AU1550 81 81 tristate "Au1550/Au1200/Au1300 SPI Controller"
+1 -1
drivers/usb/musb/Kconfig
··· 87 87 config USB_MUSB_TUSB6010 88 88 tristate "TUSB6010" 89 89 depends on HAS_IOMEM 90 - depends on (ARCH_OMAP2PLUS || COMPILE_TEST) && !BLACKFIN 90 + depends on ARCH_OMAP2PLUS || COMPILE_TEST 91 91 depends on NOP_USB_XCEIV = USB_MUSB_HDRC # both built-in or both modules 92 92 93 93 config USB_MUSB_OMAP2PLUS
+1 -2
drivers/video/console/Kconfig
··· 6 6 7 7 config VGA_CONSOLE 8 8 bool "VGA text console" if EXPERT || !X86 9 - depends on !4xx && !PPC_8xx && !SPARC && !M68K && !PARISC && !FRV && \ 10 - !SUPERH && !BLACKFIN && !AVR32 && !CRIS && \ 9 + depends on !4xx && !PPC_8xx && !SPARC && !M68K && !PARISC && !SUPERH && \ 11 10 (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) && \ 12 11 !ARM64 && !ARC && !MICROBLAZE && !OPENRISC 13 12 default y
-6
drivers/watchdog/Kconfig
··· 828 828 To compile this driver as a module, choose M here: the 829 829 module will be called bfin_wdt. 830 830 831 - # CRIS Architecture 832 - 833 - # FRV Architecture 834 - 835 831 # X86 (i386 + ia64 + x86_64) Architecture 836 832 837 833 config ACQUIRE_WDT ··· 1426 1430 1427 1431 To compile this driver as a module, choose M here: the module will be 1428 1432 called nic7018_wdt. 1429 - 1430 - # M32R Architecture 1431 1433 1432 1434 # M68K Architecture 1433 1435
-6
drivers/watchdog/Makefile
··· 94 94 # BLACKFIN Architecture 95 95 obj-$(CONFIG_BFIN_WDT) += bfin_wdt.o 96 96 97 - # CRIS Architecture 98 - 99 - # FRV Architecture 100 - 101 97 # X86 (i386 + ia64 + x86_64) Architecture 102 98 obj-$(CONFIG_ACQUIRE_WDT) += acquirewdt.o 103 99 obj-$(CONFIG_ADVANTECH_WDT) += advantechwdt.o ··· 141 145 obj-$(CONFIG_INTEL_MEI_WDT) += mei_wdt.o 142 146 obj-$(CONFIG_NI903X_WDT) += ni903x_wdt.o 143 147 obj-$(CONFIG_NIC7018_WDT) += nic7018_wdt.o 144 - 145 - # M32R Architecture 146 148 147 149 # M68K Architecture 148 150 obj-$(CONFIG_M54xx_WATCHDOG) += m54xx_wdt.o
+2 -3
fs/Kconfig.binfmt
··· 1 1 config BINFMT_ELF 2 2 bool "Kernel support for ELF binaries" 3 - depends on MMU && (BROKEN || !FRV) 3 + depends on MMU 4 4 select ELFCORE 5 5 default y 6 6 ---help--- ··· 35 35 config BINFMT_ELF_FDPIC 36 36 bool "Kernel support for FDPIC ELF binaries" 37 37 default y if !BINFMT_ELF 38 - depends on (ARM || FRV || BLACKFIN || (SUPERH32 && !MMU) || C6X) 38 + depends on (ARM || (SUPERH32 && !MMU) || C6X) 39 39 select ELFCORE 40 40 help 41 41 ELF FDPIC binaries are based on ELF, but allow the individual load ··· 90 90 config BINFMT_FLAT 91 91 bool "Kernel support for flat binaries" 92 92 depends on !MMU || ARM || M68K 93 - depends on !FRV || BROKEN 94 93 help 95 94 Support uClinux FLAT format binaries. 96 95
+1 -1
fs/minix/Kconfig
··· 18 18 19 19 config MINIX_FS_NATIVE_ENDIAN 20 20 def_bool MINIX_FS 21 - depends on M32R || MICROBLAZE || MIPS || S390 || SUPERH || SPARC || XTENSA || (M68K && !MMU) 21 + depends on MICROBLAZE || MIPS || S390 || SUPERH || SPARC || XTENSA || (M68K && !MMU) 22 22 23 23 config MINIX_FS_BIG_ENDIAN_16BIT_INDEXED 24 24 def_bool MINIX_FS
+1 -6
include/linux/ide.h
··· 25 25 #include <asm/byteorder.h> 26 26 #include <asm/io.h> 27 27 28 - #if defined(CONFIG_CRIS) || defined(CONFIG_FRV) 29 - # define SUPPORT_VLB_SYNC 0 30 - #else 31 - # define SUPPORT_VLB_SYNC 1 32 - #endif 33 - 34 28 /* 35 29 * Probably not wise to fiddle with these 36 30 */ 31 + #define SUPPORT_VLB_SYNC 1 37 32 #define IDE_DEFAULT_MAX_FAILURES 1 38 33 #define ERROR_MAX 8 /* Max read/write errors per sector */ 39 34 #define ERROR_RESET 3 /* Reset controller every 4th retry */
+2 -3
init/Kconfig
··· 998 998 999 999 config BLK_DEV_INITRD 1000 1000 bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" 1001 - depends on BROKEN || !FRV 1002 1001 help 1003 1002 The initial RAM filesystem is a ramfs which is loaded by the 1004 1003 boot loader (loadlin or lilo) and that is mounted as root ··· 1107 1108 1108 1109 config SGETMASK_SYSCALL 1109 1110 bool "sgetmask/ssetmask syscalls support" if EXPERT 1110 - def_bool PARISC || BLACKFIN || M68K || PPC || MIPS || X86 || SPARC || CRIS || MICROBLAZE || SUPERH 1111 + def_bool PARISC || M68K || PPC || MIPS || X86 || SPARC || MICROBLAZE || SUPERH 1111 1112 ---help--- 1112 1113 sys_sgetmask and sys_ssetmask are obsolete system calls 1113 1114 no longer supported in libc but still enabled by default in some ··· 1369 1370 config KALLSYMS_BASE_RELATIVE 1370 1371 bool 1371 1372 depends on KALLSYMS 1372 - default !IA64 && !(TILE && 64BIT) 1373 + default !IA64 1373 1374 help 1374 1375 Instead of emitting them as absolute values in the native word size, 1375 1376 emit the symbol references in the kallsyms table as 32-bit entries,
+5 -8
lib/Kconfig.debug
··· 165 165 166 166 config DEBUG_INFO_SPLIT 167 167 bool "Produce split debuginfo in .dwo files" 168 - depends on DEBUG_INFO && !FRV 168 + depends on DEBUG_INFO 169 169 help 170 170 Generate debug info into separate .dwo files. This significantly 171 171 reduces the build directory size for builds with DEBUG_INFO, ··· 354 354 355 355 config FRAME_POINTER 356 356 bool "Compile the kernel with frame pointers" 357 - depends on DEBUG_KERNEL && \ 358 - (CRIS || M68K || FRV || UML || \ 359 - SUPERH || BLACKFIN) || \ 360 - ARCH_WANT_FRAME_POINTERS 357 + depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS 361 358 default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS 362 359 help 363 360 If you say Y here the resulting kernel image will be slightly ··· 1135 1138 bool 1136 1139 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 1137 1140 select STACKTRACE 1138 - select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !SCORE && !X86 1141 + select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !X86 1139 1142 select KALLSYMS 1140 1143 select KALLSYMS_ALL 1141 1144 ··· 1568 1571 depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT 1569 1572 depends on !X86_64 1570 1573 select STACKTRACE 1571 - select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC && !SCORE && !X86 1574 + select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC && !X86 1572 1575 help 1573 1576 Provide stacktrace filter for fault-injection capabilities 1574 1577 ··· 1966 1969 bool "Filter access to /dev/mem" 1967 1970 depends on MMU && DEVMEM 1968 1971 depends on ARCH_HAS_DEVMEM_IS_ALLOWED 1969 - default y if TILE || PPC || X86 || ARM64 1972 + default y if PPC || X86 || ARM64 1970 1973 ---help--- 1971 1974 If this option is disabled, you allow userspace (root) access to all 1972 1975 of memory, including kernel and userspace memory. Accidental
-2
lib/test_user_copy.c
··· 31 31 * their capability at compile-time, we just have to opt-out certain archs. 32 32 */ 33 33 #if BITS_PER_LONG == 64 || (!(defined(CONFIG_ARM) && !defined(MMU)) && \ 34 - !defined(CONFIG_BLACKFIN) && \ 35 - !defined(CONFIG_M32R) && \ 36 34 !defined(CONFIG_M68K) && \ 37 35 !defined(CONFIG_MICROBLAZE) && \ 38 36 !defined(CONFIG_NIOS2) && \
-7
mm/Kconfig
··· 278 278 by default when ZONE_DMA or HIGHMEM is selected, but you 279 279 may say n to override this. 280 280 281 - # On the 'tile' arch, USB OHCI needs the bounce pool since tilegx will often 282 - # have more than 4GB of memory, but we don't currently use the IOTLB to present 283 - # a 32-bit address to OHCI. So we need to use a bounce pool instead. 284 - config NEED_BOUNCE_POOL 285 - bool 286 - default y if TILE && USB_OHCI_HCD 287 - 288 281 config NR_QUICK 289 282 int 290 283 depends on QUICKLIST
-4
mm/percpu.c
··· 2719 2719 2720 2720 if (pcpu_setup_first_chunk(ai, fc) < 0) 2721 2721 panic("Failed to initialize percpu areas."); 2722 - #ifdef CONFIG_CRIS 2723 - #warning "the CRIS architecture has physical and virtual addresses confused" 2724 - #else 2725 2722 pcpu_free_alloc_info(ai); 2726 - #endif 2727 2723 } 2728 2724 2729 2725 #endif /* CONFIG_SMP */