Re: [PATCH net-next] net: dsa: fix build error with devlink build as module

2017-04-01 Thread David Miller
From: Tobias Regnery Date: Fri, 31 Mar 2017 11:44:52 +0200 > After commit 96567d5dacf4 ("net: dsa: dsa2: Add basic support of devlink") > I see the following link error with CONFIG_NET_DSA=y and CONFIG_NET_DEVLINK=m: > > net/built-in.o: In function 'dsa_register_switch': > (.text+0xe226b): undef

Re: [PATCH net-next] net: dsa: fix build error with devlink build as module

2017-03-31 Thread Andrew Lunn
On Fri, Mar 31, 2017 at 11:44:52AM +0200, Tobias Regnery wrote: > After commit 96567d5dacf4 ("net: dsa: dsa2: Add basic support of devlink") > I see the following link error with CONFIG_NET_DSA=y and CONFIG_NET_DEVLINK=m: > > net/built-in.o: In function 'dsa_register_switch': > (.text+0xe226b): un

[PATCH net-next] net: dsa: fix build error with devlink build as module

2017-03-31 Thread Tobias Regnery
After commit 96567d5dacf4 ("net: dsa: dsa2: Add basic support of devlink") I see the following link error with CONFIG_NET_DSA=y and CONFIG_NET_DEVLINK=m: net/built-in.o: In function 'dsa_register_switch': (.text+0xe226b): undefined reference to `devlink_alloc' net/built-in.o: In function 'dsa_regi