[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150311162016.GF2057@nanopsycho.orion>
Date: Wed, 11 Mar 2015 17:20:16 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>,
Scott Feldman <sfeldma@...il.com>,
Randy Dunlap <rdunlap@...radead.org>
Subject: Re: [patch net-next] switchdev: select INET in Kconfig
Wed, Mar 11, 2015 at 04:36:16PM CET, alexei.starovoitov@...il.com wrote:
>On Wed, Mar 11, 2015 at 2:49 AM, Jiri Pirko <jiri@...nulli.us> wrote:
>> This would fix randconfig compile error:
>> net/built-in.o: In function `netdev_switch_fib_ipv4_abort':
>> (.text+0xf7811): undefined reference to `fib_flush_external'
>>
>> Also it fixes following warning:
>> warning: (NET_DSA) selects NET_SWITCHDEV which has unmet direct dependencies (NET && INET)
>>
>> Suggested-by: Randy Dunlap <rdunlap@...radead.org>
>> Signed-off-by: Jiri Pirko <jiri@...nulli.us>
>> ---
>> net/switchdev/Kconfig | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/net/switchdev/Kconfig b/net/switchdev/Kconfig
>> index 86a47e1..3487940 100644
>> --- a/net/switchdev/Kconfig
>> +++ b/net/switchdev/Kconfig
>> @@ -4,7 +4,7 @@
>>
>> config NET_SWITCHDEV
>> bool "Switch (and switch-ish) device support (EXPERIMENTAL)"
>> - depends on INET
>> + select INET
>
>I believe Dave mentioned few times that 'select' is highly
>discouraged, since it doesn't work recursively.
>In this case only crazy config KVMTOOL_TEST_ENABLE
>is doing 'select INET' everything else in a tree is using
>'depends on INET'.
>Doing 'select NET_SWITCHDEV' was wrong in the first place.
Ok, so you suggest just to change this to "depends on NET_SWITCHDEV" in
DSA and we are good?
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists