[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141204.202404.32587724475591669.davem@davemloft.net>
Date: Thu, 04 Dec 2014 20:24:04 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: mail@...ran.de
Cc: jim.epost@...il.com, sfr@...b.auug.org.au,
linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
jiri@...nulli.us, sfeldma@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: ethernet: rocker: Add select to CONFIG_BRIDGE in
Kconfig
From: Andreas Ruprecht <mail@...ran.de>
Date: Thu, 04 Dec 2014 18:36:37 +0100
> On 04.12.2014 17:34, Jim Davis wrote:
>> Building with the attached random configuration file,
>>
>> drivers/built-in.o: In function `rocker_port_fdb_learn_work':
>> /home/jim/linux/drivers/net/ethernet/rocker/rocker.c:3014: undefined
>> reference to `br_fdb_external_learn_del'
>> /home/jim/linux/drivers/net/ethernet/rocker/rocker.c:3016: undefined
>> reference to `br_fdb_external_learn_add'
>>
>
> Hi,
>
> the problem here is that CONFIG_BRIDGE is set to 'm' (leading to
> inclusion of the two functions above in the kernel module) while
> CONFIG_ROCKER is set to 'y', requiring the functions at link time.
>
> Is the attached patch sufficient to fix this?
Do not use select, please.
You can only use select on leaf node Kconfig symbols, ie. those
which do not have any dependencies whatsoever.
Select does not recursively walk down the dependency chain turning
things on for you when you say "select X".
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists