mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
665d8d5876
The AKEBONO config has various selects under it, including some with user-selectable dependencies, which means those dependencies can be disabled. This leads to warnings from Kconfig. This can be seen with eg: $ make allnoconfig $ ./scripts/config --file build~/.config -k -e CONFIG_44x -k -e CONFIG_PPC_47x -e CONFIG_AKEBONO $ make olddefconfig WARNING: unmet direct dependencies detected for ATA Depends on [n]: HAS_IOMEM [=y] && BLOCK [=n] Selected by [y]: - AKEBONO [=y] && PPC_47x [=y] WARNING: unmet direct dependencies detected for NETDEVICES Depends on [n]: NET [=n] Selected by [y]: - AKEBONO [=y] && PPC_47x [=y] WARNING: unmet direct dependencies detected for ETHERNET Depends on [n]: NETDEVICES [=y] && NET [=n] Selected by [y]: - AKEBONO [=y] && PPC_47x [=y] WARNING: unmet direct dependencies detected for MMC_SDHCI Depends on [n]: MMC [=n] && HAS_DMA [=y] Selected by [y]: - AKEBONO [=y] && PPC_47x [=y] WARNING: unmet direct dependencies detected for MMC_SDHCI_PLTFM Depends on [n]: MMC [=n] && MMC_SDHCI [=y] Selected by [y]: - AKEBONO [=y] && PPC_47x [=y] The problem is that AKEBONO is using select to enable things that are not true dependencies, but rather things you probably want enabled in an AKEBONO kernel. That is what a defconfig is for. So drop those selects and instead move those symbols into the defconfig. This fixes all the kconfig warnings, and the result of make 44x/akebono_defconfig is the same before and after the patch. Reported-by: Yury Norov <yury.norov@gmail.com> Reported-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Tested-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20210201012503.940145-1-mpe@ellerman.id.au |
||
---|---|---|
.. | ||
40x | ||
44x | ||
52xx | ||
83xx | ||
85xx | ||
85xx-32bit.config | ||
85xx-64bit.config | ||
85xx-hw.config | ||
85xx-smp.config | ||
86xx-hw.config | ||
86xx-smp.config | ||
adder875_defconfig | ||
altivec.config | ||
amigaone_defconfig | ||
be.config | ||
book3s_32.config | ||
cell_defconfig | ||
chrp32_defconfig | ||
corenet_base.config | ||
debug.config | ||
disable-werror.config | ||
dpaa.config | ||
ep88xc_defconfig | ||
ep8248e_defconfig | ||
fsl-emb-nonhw.config | ||
g5_defconfig | ||
gamecube_defconfig | ||
guest.config | ||
holly_defconfig | ||
le.config | ||
linkstation_defconfig | ||
maple_defconfig | ||
mgcoge_defconfig | ||
mpc83xx_defconfig | ||
mpc85xx_base.config | ||
mpc86xx_base.config | ||
mpc512x_defconfig | ||
mpc866_ads_defconfig | ||
mpc885_ads_defconfig | ||
mpc5200_defconfig | ||
mpc7448_hpc2_defconfig | ||
mpc8272_ads_defconfig | ||
mvme5100_defconfig | ||
pasemi_defconfig | ||
pmac32_defconfig | ||
powernv_defconfig | ||
ppc6xx_defconfig | ||
ppc40x_defconfig | ||
ppc44x_defconfig | ||
ppc64_defconfig | ||
ppc64e_defconfig | ||
ppc64le.config | ||
pq2fads_defconfig | ||
ps3_defconfig | ||
pseries_defconfig | ||
security.config | ||
skiroot_defconfig | ||
storcenter_defconfig | ||
tqm8xx_defconfig | ||
wii_defconfig |