android_kernel_xiaomi_sdm845/drivers
Trent Piepho 59faba1b31 Fix Kconfig dependency problems wrt boolean menuconfigs
If one has a dependency chain (tristate)FOO depends on (bool)BAR depends on
(tristate)BAZ, build problems will result.  If BAZ=m, then BAR can be set
y, which allows FOO=y.  It's possible to have FOO=y && BAZ=m, which
wouldn't be allowed if FOO depended directly on BAZ.  In effect, the bool
promotes the tristate from m to y.

This ends up causing a problem with several menuconfigs that look like:

menuconfig BAR
	bool
	depends on BAZ [tristate]
if BAR
config FOO
	tristate
endif

The solution used here is to add the dependencies of BAR to the if
statement, so that items in the if block will gain a direct
non-bool-promoted dependency on BAZ.  This is how it would work if a menu
was used instead of an if block.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Jeff Garzik <jeff@garzik.org>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-28 11:34:53 -07:00
..
acorn
acpi ACPI: fix 2.6.20 SMP boot regression 2007-06-23 10:57:28 -04:00
amba
ata libata: kill ATA_HORKAGE_DMA_RW_ONLY 2007-06-27 02:50:08 -04:00
atm Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
auxdisplay
base
block
bluetooth
cdrom
char Add support SiS based XGI chips to SiS DRM. 2007-06-27 09:54:49 -07:00
clocksource
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firewire firewire: Only set client->iso_context if allocation was successful. 2007-06-21 00:09:41 +02:00
firmware
hid
hwmon hwmon/coretemp: fix a broken error path 2007-06-24 08:59:10 -07:00
i2c
ide Resume from RAM on HPC nx6325 broken 2007-06-16 02:24:43 +02:00
ieee1394 ieee1394: fix to ether1394_tx in ether1394.c 2007-06-16 12:43:20 +02:00
infiniband IB/mlx4: Correct max_srq_wr returned from mlx4_ib_query_device() 2007-06-21 13:39:10 -07:00
input x86_64: Quieten Atari keyboard warnings in Kconfig 2007-06-20 14:27:26 -07:00
isdn
kvm KVM: Prevent guest fpu state from leaking into the host 2007-06-15 12:30:59 +03:00
leds
macintosh x86_64: Fix only make Macintosh drivers default on Macs 2007-06-22 18:41:18 -07:00
mca
md md: fix bug in error handling during raid1 repair 2007-06-16 13:16:15 -07:00
media Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
message
mfd SM501: Check SM501 ID register on initialisation 2007-06-24 08:59:11 -07:00
misc
mmc mmc: get back read-only switch function 2007-06-13 19:11:20 +02:00
mtd
net Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
nubus
oprofile
parisc [PARISC] stop lcd driver from stripping initial whitespace 2007-06-21 17:46:19 -04:00
parport
pci
pcmcia
pnp PNP SMCf010 quirk: auto-config device if BIOS left it broken 2007-06-28 11:34:53 -07:00
ps3
rapidio
rtc
s390 s390: netiucv inlining cleanup 2007-06-20 19:12:42 -04:00
sbus
scsi Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 2007-06-18 10:38:09 -07:00
serial Blackfin serial driver: decouple PARODD and CMSPAR checking from PARENB 2007-06-11 16:16:45 +08:00
sh
sn
spi Blackfin SPI driver: fix bug SPI DMA incomplete transmission 2007-06-11 17:34:17 +08:00
tc
telephony
usb USB: ftdio_sio: New IPlus device ID 2007-06-25 23:38:06 -07:00
video atyfb: Fix XCLK frequency on Apple iBook1 2007-06-28 11:34:53 -07:00
w1
zorro
Kconfig
Makefile