Skip to contentSkip to conversation

even *more* unused CONFIG variables at no extra charge

DISCUSSION Robert P. J. Day 2 participants 3 messages Nov 16, 2007 – Nov 19, 2007

lore
Share & tools
lore
#0 lore raw

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_AGP
ALPHA_EV7
DEBUG_RWLOCK

==== arm ====

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

ARCH_AT91SAM9260_SAM9XE
ARCH_CINTEGRATOR
ARCH_EBSA285_ADDIN
ARCH_IXCDP1100
CPU_CP15_MPU
DEBUG_ERRORS
DEBUG_S3C_PORT
H3600_SLEEVE

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

MACH_EP80219
MACH_IXDP28X5
MACH_S3C2413
MACH_SMDK2412
MACH_TRIZEPS4_ANY
OMAP_MCBSP
SMDK2440_CPU2440
SMDK2440_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_DPORT
BFIN_ALIVE_LED_PORT
BFIN_IDLE_LED_DPORT
BFIN_IDLE_LED_PORT
LARGE_ALLOCS
SCHEDULE_L1

==== cris ====

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

ETRAX_ETHERNET_HW_CSUM
ETRAX_ETHERNET_IFACE0
ETRAX_ETHERNET_IFACE1
ETRAX_IDE_DELAY
ETRAX_PA_BUTTON_BITMASK
ETRAX_PA_BUTTON_BITMASK
ETRAX_SER0_CD_BIT
ETRAX_SER0_DSR_BIT
ETRAX_SER0_DTR_BIT
ETRAX_SER0_RI_BIT
ETRAX_SER1_CD_BIT
ETRAX_SER1_DSR_BIT
ETRAX_SER1_DTR_BIT
ETRAX_SER1_RI_BIT
ETRAX_SER2_CD_BIT
ETRAX_SER2_DSR_BIT
ETRAX_SER2_DTR_BIT
ETRAX_SER2_RI_BIT
ETRAX_SER3_CD_BIT
ETRAX_SER3_DSR_BIT

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

ETRAX_SER3_DTR_BIT
ETRAX_SER3_RI_BIT
ETRAX_SERIAL_PORT1_DMA4_OUT
ETRAX_SERIAL_PORT1_DMA5_IN
ETRAX_SERIAL_PORT3_DMA8_OUT
ETRAX_SERIAL_PORT3_DMA9_IN
ETRAX_USB_HOST_PORT1
ETRAX_USB_HOST_PORT2

==== frv ====

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

FRV_DEFL_CACHE_DISABLED
MB93091_NO_MB
UCPAGE_OFFSET_20000000
UCPAGE_OFFSET_40000000
UCPAGE_OFFSET_60000000
UCPAGE_OFFSET_80000000
UCPAGE_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_KEYBOARD
ATARI_SCC_DMA
GVPIOEXT_LP
GVPIOEXT_PLIP
MAC_ADBKEYCODES
MAC_HID
WHIPPET_SERIAL

==== m68knommu ====

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

BDM_DISABLE
COBRA5329
DUMPTOFLASH
EMAC_INC
RAM16BIT
RAM32BIT
RAM8BIT
ROMFS_FROM_ROM
WILDFIREMOD

==== mips ====

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

64BIT_CONTEXT
ACER_PICA_61
CPU_SB1_PASS_2_112x
CPU_SB1_PASS_2_1250
CPU_SB1_PASS_3
CPU_SB1_PASS_4
DMA_IP32

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

MIPS_DISABLE_OBSOLETE_IDE
MIPS_INSANE_LARGE
MIPS_MT_DISABLED
MIPS_RM9122
SIBYTE_BCM1120
SIBYTE_BCM1125
SIBYTE_BCM1125H
SIBYTE_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_MPC836x
XILINX_VIRTEX_II_PRO

==== ppc ====

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

MPC8XXFADS
NONMONARCH_SUPPORT
PC_KEYBOARD
SPRUCE_BAUD_33M
UART1_DFLT_CONSOLE
UART1_DFLT_CONSOLE
WANT_EARLY_SERIAL
WINCEPT
XILINX_VIRTEX_II_PRO

==== sh64 ====

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

DEVICE_MEMORY_START
FLASH_MEMORY_START
HDSP253_LED
PCI_BLOCK_START
PCIDEVICE_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_LIST
STDIO_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_ELF
XTENSA_ISS_NETWORK
XTENSA_UNALIGNED_USER

rday

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================

#1 lore raw
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_START
FLASH_MEMORY_START
HDSP253_LED
PCI_BLOCK_START
PCIDEVICE_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.

#2 lore raw
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_START
FLASH_MEMORY_START
HDSP253_LED
PCI_BLOCK_START
PCIDEVICE_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_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.

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
========================================================================