Re: [PATCH 6/8] x86: add MULTIUSER dependency for KVM
From: Arnd Bergmann
Date: Wed Jul 19 2017 - 10:18:17 EST
On Wed, Jul 19, 2017 at 4:11 PM, Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx> wrote:
> 2017-07-19 14:53+0200, Arnd Bergmann:
>> KVM tries to select 'TASKSTATS', which had additional dependencies:
>>
>> warning: (KVM) selects TASKSTATS which has unmet direct dependencies (NET && MULTIUSER)
>>
>> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
>> ---
>
> Hm, do you know why Kconfig warns instead of propagating the
> dependencies?
Kconfig propagates 'depends on' dependencies, but cannot turn a 'select'
into 'depends on', as those two mean different things.
Another solution to the problem would be to use 'depends on TASKSTATS'.
Generally speaking, using 'select' to turn on a user-visible option is a bad
idea, but blindly turning those 'select' into 'depends on' is also dangerous,
as it can break configurations of existing users that would here end up with
neither TASKSTATS nor KVM after a 'make oldconfig'.
Arnd