On Thu, 2020-01-30 at 20:55 +0100, Krzysztof Kozlowski wrote: > CONFIG_MMC_BLOCK_BOUNCE is gone since commit c3dccb74be28 ("mmc: core: > Delete bounce buffer Kconfig option"). > > CONFIG_LBDAF is gone since commit 72deb455b5ec ("block: remove > CONFIG_LBDAF"). > > CONFIG_IOSCHED_DEADLINE and CONFIG_IOSCHED_CFQ are gone since > commit f382fb0bcef4 ("block: remove legacy IO schedulers"). > > The IOSCHED_DEADLINE was replaced by MQ_IOSCHED_DEADLINE and it will be > now enabled by default (along with MQ_IOSCHED_KYBER). > > The IOSCHED_BFQ seems to replace IOSCHED_CFQ so select it in configs > previously choosing the latter. > > CONFIG_CROSS_COMPILE is gone since commit f1089c92da79 ("kbuild: remove > CONFIG_CROSS_COMPILE support"). Hi Krzysztof. There seems there are a lot more of these unused CONFIG_<foo> symbols in various defconfigs. (just for arm and treewide below) ARM defconfigs: -------------------------------------------------------------------- # find all defined config symbols in Kconfig files $ git grep -P -oh '^\s*(?:menu)?config\s+\w+' -- '*/Kconfig*' | \ sed -r -e 's/\s*config\s+//' -e 's/\s*menuconfig\s+//' | \ sort | uniq > config_symbols # find CONFIG_ symbols in arm defconfigs $ git grep -w -oh -P 'CONFIG_\w+' 'arch/arm*/*defconfig*' | \ sort | uniq > used_in_arm_defconfigs # find all the unused symbols $ cat used_in_arm_defconfigs | \ while read line ; do \ echo -n "$line " ; grep -w -c ${line/CONFIG_/} config_symbols ; \ done | \ grep " 0" | \ sed 's/ 0//' CONFIG_ARCH_AUTCPU12 CONFIG_ARCH_CDB89712 CONFIG_ARCH_CLEP7312 CONFIG_ARCH_EDB7211 CONFIG_ARCH_P720T CONFIG_ARCH_R8A7796 CONFIG_BT_HCIBTUART CONFIG_CC_STACKPROTECTOR_REGULAR CONFIG_CHR_DEV_OSST CONFIG_CIFS_STATS CONFIG_CROSS_COMPILE CONFIG_DEBUG_SPINLOCK_SLEEP CONFIG_DETECT_SOFTLOCKUP CONFIG_DM9000_DEBUGLEVEL CONFIG_DRM_TINYDRM CONFIG_EXT3_DEFAULTS_TO_ORDERED CONFIG_EXT3_FS_XATTR CONFIG_FB_XGI CONFIG_GPIO_MOXART CONFIG_HOTPLUG CONFIG_INET6_XFRM_MODE_BEET CONFIG_INET6_XFRM_MODE_TRANSPORT CONFIG_INET6_XFRM_MODE_TUNNEL CONFIG_INET_XFRM_MODE_BEET CONFIG_INET_XFRM_MODE_TRANSPORT CONFIG_INET_XFRM_MODE_TUNNEL CONFIG_IOSCHED_CFQ CONFIG_IOSCHED_DEADLINE CONFIG_IP_NF_MATCH_ADDRTYPE CONFIG_IP_NF_TARGET_LOG CONFIG_IPX CONFIG_IRCOMM CONFIG_IRDA CONFIG_IRDA_CACHE_LAST_LSAP CONFIG_IRDA_DEBUG CONFIG_IRDA_FAST_RR CONFIG_IRDA_ULTRA CONFIG_IRLAN CONFIG_IRNET CONFIG_IRTTY_SIR CONFIG_KALLSYMS_EXTRA_PASS CONFIG_LBDAF CONFIG_LEDS_CPU CONFIG_LEDS_TIMER CONFIG_MAC80211_RC_PID CONFIG_MACH_BIGDISK CONFIG_MACH_D2NET CONFIG_MACH_DOVE_DT CONFIG_MACH_EDMINI_V2_DT CONFIG_MACH_LINKSTATION_LSCHL CONFIG_MACH_MSS2 CONFIG_MACH_U300_SPIDUMMY CONFIG_MACH_VOICEBLUE CONFIG_MEDIA_TUNER_CUSTOMISE CONFIG_MMC_BLOCK_BOUNCE CONFIG_MMP_SPI CONFIG_MTD_DEBUG CONFIG_MTD_DEBUG_VERBOSE CONFIG_MTD_DOC2000 CONFIG_MTD_DOC2001 CONFIG_MTD_DOC2001PLUS CONFIG_MTD_DOCPROBE_ADDRESS CONFIG_MTD_DOCPROBE_ADVANCED CONFIG_MTD_DOCPROBE_HIGH CONFIG_MTD_M25P80 CONFIG_NET_CADENCE CONFIG_NET_DMA CONFIG_NET_ETHERNET CONFIG_NET_PCI CONFIG_NET_PCMCIA CONFIG_NET_VENDOR_SMC CONFIG_NF_CONNTRACK_IPV4 CONFIG_NF_CONNTRACK_IPV6 CONFIG_PCIE_AXXIA CONFIG_PM_RUNTIME CONFIG_PROC_DEVICETREE CONFIG_PXA_FICP CONFIG_QCOM_ADSP_PIL CONFIG_QCOM_Q6V5_PIL CONFIG_SA1100_FIR CONFIG_SCSI_MULTI_LUN CONFIG_SMB_FS CONFIG_SMB_NLS_DEFAULT CONFIG_SOC_CAMERA_OV2640 CONFIG_SOC_CAMERA_PLATFORM CONFIG_SOUND_DMAP CONFIG_SOUND_OSS CONFIG_SOUND_PRIME CONFIG_SOUND_TRACEINIT CONFIG_SOUND_VIDC CONFIG_SOUND_WAVEARTIST CONFIG_SOUND_YM3812 CONFIG_SUSPEND_TIME CONFIG_SYSCTL_SYSCALL CONFIG_TIMER_STATS CONFIG_UID_STAT CONFIG_USB_CHIPIDEA_ULPI CONFIG_USB_EHCI_HCD_AXXIA CONFIG_USB_EHCI_MSM CONFIG_USB_GADGET_DUMMY_HCD CONFIG_USB_MSM_OTG CONFIG_V4L_USB_DRIVERS CONFIG_VIDEO_HELPER_CHIPS_AUTO CONFIG_WAN_ROUTER CONFIG_WAN_ROUTER_DRIVERS CONFIG_WINBOND_FIR -------------------------------------------------------------------- And treewide defconfigs: $ git grep -P -oh '^\s*(?:menu)?config\s+\w+' -- '*/Kconfig*' | \ sed -r -e 's/\s*config\s+//' -e 's/\s*menuconfig\s+//' | \ sort | uniq > config_symbols $ git grep -w -oh -P 'CONFIG_\w+' '*defconfig*' | \ sort | uniq > used_in_defconfigs $ cat used_in_defconfigs | \ while read line ; do \ echo -n "$line " ; grep -w -c ${line/CONFIG_/} config_symbols ; \ done | \ grep " 0" | \ sed 's/ 0//' CONFIG_ALI_FIR CONFIG_ARCH_AUTCPU12 CONFIG_ARCH_CDB89712 CONFIG_ARCH_CLEP7312 CONFIG_ARCH_EDB7211 CONFIG_ARCH_P720T CONFIG_ARCH_R8A7796 CONFIG_ARCPGU_DISPTYPE CONFIG_ARCPGU_RGB888 CONFIG_ARPD CONFIG_ATH79_MACH_AP121 CONFIG_ATH79_MACH_AP136 CONFIG_ATH79_MACH_AP81 CONFIG_ATH79_MACH_DB120 CONFIG_ATH79_MACH_PB44 CONFIG_ATH79_MACH_UBNT_XM CONFIG_BLK_DEV_RAM_DAX CONFIG_BOARD_EVM6457 CONFIG_BOARD_EVM6472 CONFIG_BOARD_EVM6474 CONFIG_BOARD_EVM6678 CONFIG_BT_HCIBTUART CONFIG_CC_STACKPROTECTOR_REGULAR CONFIG_CFQ_GROUP_IOSCHED CONFIG_CGROUP_MEMCG CONFIG_CGROUP_MEMCG_SWAP CONFIG_CHR_DEV_OSST CONFIG_CIFS_STATS CONFIG_CROSS_COMPILE CONFIG_CRYPTO_AES_586 CONFIG_CSKY_MPTIMER CONFIG_DEBUG_SPINLOCK_SLEEP CONFIG_DEFAULT_DEADLINE CONFIG_DEFAULT_NOOP CONFIG_DETECT_SOFTLOCKUP CONFIG_DEVPTS_MULTIPLE_INSTANCES CONFIG_DM9000_DEBUGLEVEL CONFIG_DRM_TINYDRM CONFIG_DSCC4 CONFIG_DVB_FE_CUSTOMISE CONFIG_ENABLE_WARN_DEPRECATED CONFIG_EXOFS_FS CONFIG_EXPERIMENTAL CONFIG_EXT2_FS_XIP CONFIG_EXT3_DEFAULTS_TO_ORDERED CONFIG_EXT3_FS_XATTR CONFIG_FB_SH7785FB CONFIG_FB_XGI CONFIG_GPIO_MOXART CONFIG_HEADERS_CHECK CONFIG_HID_SUPPORT CONFIG_HOTPLUG CONFIG_I2C_PARPORT_LIGHT CONFIG_INET6_XFRM_MODE_BEET CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION CONFIG_INET6_XFRM_MODE_TRANSPORT CONFIG_INET6_XFRM_MODE_TUNNEL CONFIG_INET_LRO CONFIG_INET_XFRM_MODE_BEET CONFIG_INET_XFRM_MODE_TRANSPORT CONFIG_INET_XFRM_MODE_TUNNEL CONFIG_INFINIBAND_CXGB3 CONFIG_IOSCHED_CFQ CONFIG_IOSCHED_DEADLINE CONFIG_IP_NF_MATCH_ADDRTYPE CONFIG_IP_NF_TARGET_LOG CONFIG_IPV6_PRIVACY CONFIG_IPX CONFIG_IRCOMM CONFIG_IRDA CONFIG_IRDA_CACHE_LAST_LSAP CONFIG_IRDA_DEBUG CONFIG_IRDA_FAST_RR CONFIG_IRDA_ULTRA CONFIG_IRLAN CONFIG_IRNET CONFIG_IRTTY_SIR CONFIG_KALLSYMS_EXTRA_PASS CONFIG_KINGSUN_DONGLE CONFIG_KS959_DONGLE CONFIG_KSDAZZLE_DONGLE CONFIG_LBDAF CONFIG_LEDS_CPU CONFIG_LEDS_TIMER CONFIG_MAC80211_RC_PID CONFIG_MACH_BIGDISK CONFIG_MACH_D2NET CONFIG_MACH_DOVE_DT CONFIG_MACH_EDMINI_V2_DT CONFIG_MACH_LINKSTATION_LSCHL CONFIG_MACH_MSS2 CONFIG_MACH_U300_SPIDUMMY CONFIG_MACH_VOICEBLUE CONFIG_MCS_FIR CONFIG_MEDIA_TUNER_CUSTOMISE CONFIG_MFD_SH_MOBILE_SDHI CONFIG_MMC_BLOCK_BOUNCE CONFIG_MMP_SPI CONFIG_MTD_CHAR CONFIG_MTD_DEBUG CONFIG_MTD_DEBUG_VERBOSE CONFIG_MTD_DOC2000 CONFIG_MTD_DOC2001 CONFIG_MTD_DOC2001PLUS CONFIG_MTD_DOCPROBE_ADDRESS CONFIG_MTD_DOCPROBE_ADVANCED CONFIG_MTD_DOCPROBE_HIGH CONFIG_MTD_M25P80 CONFIG_MTD_PARTITIONS CONFIG_NCP_FS CONFIG_NCPFS_EXTRAS CONFIG_NCPFS_IOCTL_LOCKING CONFIG_NCPFS_NFS_NS CONFIG_NCPFS_NLS CONFIG_NCPFS_OS2_NS CONFIG_NCPFS_PACKET_SIGNING CONFIG_NCPFS_SMALLDOS CONFIG_NCPFS_STRONG CONFIG_NET_CADENCE CONFIG_NET_DCCPPROBE CONFIG_NETDEV_1000 CONFIG_NETDEV_10000 CONFIG_NET_DMA CONFIG_NET_ETHERNET CONFIG_NET_PACKET_ENGINE CONFIG_NET_PCI CONFIG_NET_PCMCIA CONFIG_NET_TCPPROBE CONFIG_NET_VENDOR_EXAR CONFIG_NET_VENDOR_SMC CONFIG_NF_CONNTRACK_IPV4 CONFIG_NF_CONNTRACK_IPV6 CONFIG_NF_NAT_IPV4 CONFIG_NF_NAT_IPV6 CONFIG_NR_DMA_CHANNELS CONFIG_NR_DMA_CHANNELS_BOOL CONFIG_NSC_FIR CONFIG_OCTEON_ETHERNET CONFIG_OCTEON_USB CONFIG_PCIEASPM_DEBUG CONFIG_PCIE_AXXIA CONFIG_PCI_LEGACY CONFIG_PERF_COUNTERS CONFIG_PHONE CONFIG_PM_RUNTIME CONFIG_PROC_DEVICETREE CONFIG_PUV3_AC97 CONFIG_PUV3_MMC CONFIG_PUV3_MUSB CONFIG_PUV3_NAND CONFIG_PUV3_UART CONFIG_PUV3_UMAL CONFIG_PXA_FICP CONFIG_QCOM_ADSP_PIL CONFIG_QCOM_Q6V5_PIL CONFIG_RCU_CPU_STALL_INFO CONFIG_SA1100_FIR CONFIG_SBC834x CONFIG_SCSI_MULTI_LUN CONFIG_SCSI_OSD_INITIATOR CONFIG_SCSI_OSD_ULD CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE CONFIG_SH_SIR CONFIG_SIGMATEL_FIR CONFIG_SMB_FS CONFIG_SMB_NLS_DEFAULT CONFIG_SMC_IRCC_FIR CONFIG_SND_FSI_AK4642 CONFIG_SND_FSI_DA7210 CONFIG_SOC_CAMERA_MT9T112 CONFIG_SOC_CAMERA_OV2640 CONFIG_SOC_CAMERA_OV772X CONFIG_SOC_CAMERA_PLATFORM CONFIG_SOC_CAMERA_TW9910 CONFIG_SOUND_DMAP CONFIG_SOUND_OSS CONFIG_SOUND_PRIME CONFIG_SOUND_TRACEINIT CONFIG_SOUND_VIDC CONFIG_SOUND_WAVEARTIST CONFIG_SOUND_YM3812 CONFIG_SPI_XILINX_PLTFM CONFIG_STAGING_EXCLUDE_BUILD CONFIG_SUSPEND_TIME CONFIG_SYSCTL_SYSCALL CONFIG_TIMER_STATS CONFIG_TOSHIBA_FIR CONFIG_TREE_PREEMPT_RCU CONFIG_UID_STAT CONFIG_UIO_PDRV CONFIG_USB_CHIPIDEA_ULPI CONFIG_USB_CMMB_INNOFIDEI CONFIG_USB_EHCI_HCD_AXXIA CONFIG_USB_EHCI_MSM CONFIG_USB_GADGET_DUMMY_HCD CONFIG_USB_GADGET_M66592 CONFIG_USB_IRDA CONFIG_USB_MSM_OTG CONFIG_USB_WLAN_HED_AQ3 CONFIG_V4L_USB_DRIVERS CONFIG_VIA_FIR CONFIG_VIDEO_ALLOW_V4L1 CONFIG_VIDEO_HELPER_CHIPS_AUTO CONFIG_VIDEO_SH_MOBILE_CEU CONFIG_VLSI_FIR CONFIG_W1_SLAVE_DS2760 CONFIG_WAN_ROUTER CONFIG_WAN_ROUTER_DRIVERS CONFIG_WINBOND_FIR CONFIG_WLAN_80211