summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
authorSam Ravnborg2010-08-14 23:22:16 +0200
committerMichal Marek2010-08-15 00:32:12 +0200
commit84062dd3a6a045395a43de1d9adc9b8eb2d1426e (patch)
tree708038ff4d462f87fe6d3a26a99266172d9afd90 /net/ipv4/ipconfig.c
parentkconfig: Fix warning: ignoring return value of 'fgets' (diff)
downloadkernel-qcow2-linux-84062dd3a6a045395a43de1d9adc9b8eb2d1426e.tar.gz
kernel-qcow2-linux-84062dd3a6a045395a43de1d9adc9b8eb2d1426e.tar.xz
kernel-qcow2-linux-84062dd3a6a045395a43de1d9adc9b8eb2d1426e.zip
kconfig: fix savedefconfig with choice marked optional
savedefconfig failed to save the correct minimal config when it encountered a choice marked optional. Consider following minimal configuration: $cat Kconfig choice prompt "choice" optional config A bool "a" config B bool "b" endchoice $cat .config | grep -v ^# CONFIG_A=y $conf --savedefconfig=defconfig Kconfig would before this fix result in an empty file, because kconfig would assume that CONFIG_A=y is a default value. But because the choice is optional the default is that both A and B are =n. Fix so we handle optional choices correct. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'net/ipv4/ipconfig.c')
0 files changed, 0 insertions, 0 deletions