even *more* unused CONFIG variables at no extra charge
due to an embarrassing brain fart on my part, my script to find
unused CONFIG variables in the source tree missed a whole whack of them. (FYI, when checking Kconfig variable FUBAR, the fact that the corresponding reference to CONFIG_FUBAR is being used in a defconfig file somewhere does *not* count. *sigh*.)
so i'll update the wiki page shortly but here's the abridged version
for just the arch/* directories if you want to poke around yourself. as always, false positives are a distinct possibility.
==== alpha ====
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
ALPHA_CORE_AGPALPHA_EV7DEBUG_RWLOCK
==== arm ====
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
ARCH_AT91SAM9260_SAM9XEARCH_CINTEGRATORARCH_EBSA285_ADDINARCH_IXCDP1100CPU_CP15_MPUDEBUG_ERRORSDEBUG_S3C_PORTH3600_SLEEVE
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
MACH_EP80219MACH_IXDP28X5MACH_S3C2413MACH_SMDK2412MACH_TRIZEPS4_ANYOMAP_MCBSPSMDK2440_CPU2440SMDK2440_CPU2442
==== avr32 ====
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
AP7000_8_BIT_SMC
==== blackfin ====
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
BFIN_ALIVE_LED_DPORTBFIN_ALIVE_LED_PORTBFIN_IDLE_LED_DPORTBFIN_IDLE_LED_PORTLARGE_ALLOCSSCHEDULE_L1
==== cris ====
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
ETRAX_ETHERNET_HW_CSUMETRAX_ETHERNET_IFACE0ETRAX_ETHERNET_IFACE1ETRAX_IDE_DELAYETRAX_PA_BUTTON_BITMASKETRAX_PA_BUTTON_BITMASKETRAX_SER0_CD_BITETRAX_SER0_DSR_BITETRAX_SER0_DTR_BITETRAX_SER0_RI_BITETRAX_SER1_CD_BITETRAX_SER1_DSR_BITETRAX_SER1_DTR_BITETRAX_SER1_RI_BITETRAX_SER2_CD_BITETRAX_SER2_DSR_BITETRAX_SER2_DTR_BITETRAX_SER2_RI_BITETRAX_SER3_CD_BITETRAX_SER3_DSR_BIT
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
ETRAX_SER3_DTR_BITETRAX_SER3_RI_BITETRAX_SERIAL_PORT1_DMA4_OUTETRAX_SERIAL_PORT1_DMA5_INETRAX_SERIAL_PORT3_DMA8_OUTETRAX_SERIAL_PORT3_DMA9_INETRAX_USB_HOST_PORT1ETRAX_USB_HOST_PORT2
==== frv ====
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
FRV_DEFL_CACHE_DISABLEDMB93091_NO_MBUCPAGE_OFFSET_20000000UCPAGE_OFFSET_40000000UCPAGE_OFFSET_60000000UCPAGE_OFFSET_80000000UCPAGE_OFFSET_A0000000
==== h8300 ====
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
UNIX98_PTY_COUNT
==== m32r ====
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
NOHIGHMEM
==== m68k ====
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
ADB_KEYBOARDATARI_SCC_DMAGVPIOEXT_LPGVPIOEXT_PLIPMAC_ADBKEYCODESMAC_HIDWHIPPET_SERIAL
==== m68knommu ====
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
BDM_DISABLE
COBRA5329
DUMPTOFLASHEMAC_INC
RAM16BIT
RAM32BIT
RAM8BITROMFS_FROM_ROM
WILDFIREMOD
==== mips ====
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
64BIT_CONTEXT
ACER_PICA_61CPU_SB1_PASS_2_112xCPU_SB1_PASS_2_1250CPU_SB1_PASS_3CPU_SB1_PASS_4DMA_IP32
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
MIPS_DISABLE_OBSOLETE_IDEMIPS_INSANE_LARGEMIPS_MT_DISABLEDMIPS_RM9122SIBYTE_BCM1120SIBYTE_BCM1125SIBYTE_BCM1125HSIBYTE_ENABLE_LDT_IF_PCI
==== parisc ====
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
DEBUG_RWLOCK
==== powerpc ====
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
MPC8XXFADS
PPC_MPC836xXILINX_VIRTEX_II_PRO
==== ppc ====
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
MPC8XXFADS
NONMONARCH_SUPPORTPC_KEYBOARDSPRUCE_BAUD_33MUART1_DFLT_CONSOLEUART1_DFLT_CONSOLEWANT_EARLY_SERIAL
WINCEPTXILINX_VIRTEX_II_PRO
==== sh64 ====
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
DEVICE_MEMORY_STARTFLASH_MEMORY_STARTHDSP253_LEDPCI_BLOCK_STARTPCIDEVICE_MEMORY_START
==== sparc ====
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
UNIX98_PTY_COUNT
==== um ====
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
DEFCONFIG_LISTSTDIO_CONSOLE
==== x86 ====
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
NOHIGHMEM
==== xtensa ====
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
KCORE_ELFXTENSA_ISS_NETWORKXTENSA_UNALIGNED_USER
rday
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
Quoted 6 lines · Robert P. J. Day
==== sh64 ====
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
DEVICE_MEMORY_STARTFLASH_MEMORY_STARTHDSP253_LEDPCI_BLOCK_STARTPCIDEVICE_MEMORY_START
Yeah, these are mostly bogus and just never got removed. I'll poke through it and kill them off or fix up the Makefiles to actually use them (as in the HDSP253_LED case). Thanks for catching these, these sorts of reports are really useful.
Have you considered tidying up your config checker and adding it as a static analyser target with the existing set? 'make configcheck' or something would be a reasonable addition.
Quoted 8 lines · Paul Mundt
Quoted 6 lines · Robert P. J. Day
==== sh64 ====
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
DEVICE_MEMORY_STARTFLASH_MEMORY_STARTHDSP253_LEDPCI_BLOCK_STARTPCIDEVICE_MEMORY_START
Quoted 8 lines
Yeah, these are mostly bogus and just never got removed. I'll poke through it and kill them off or fix up the Makefiles to actually use them (as in the
HDSP253_LEDcase). Thanks for catching these, these sorts of reports are really useful.Have you considered tidying up your config checker and adding it as a static analyser target with the existing set? 'make configcheck' or something would be a reasonable addition.
i've thought about that but, really, i doubt it's worth it for a couple reasons. first is that this sort of cleanup isn't what you'd call life or death. it's rare that dealing with any of this output actually fixes a bug -- it's mostly for aesthetics so even i'll be the first to admit that it's not high priority.
also, some of those checks take a looooooooong time. i mean, we're talking *hours* as each CONFIG variable might invoke a tree-wide grep. you don't start some of these checks and go for coffee; you start some of them and drive into toronto for a leafs game, if you catch my drift.
and it's not like you need to run these checks on a really regular basis. i've come to realize it's sufficient to do the entire suite shortly after each merge window, post the results, and let people take it from there until the next merge window. in between, it's not like things are going to change drastically.
however, having said all that, one thing that would make a *huge* difference in reducing false positives is if people would stop naming their hard-coded Makefile variables with a "CONFIG_" prefix. man, that's irritating. :-)
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================