Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
On 10/30/2012 10:45 AM, Viresh Kumar wrote: > On 30 October 2012 14:56, Daniel Lezcano wrote: >> Well, it is the same here, no ? Except, it is up to the user to disable >> the option. > > I didn't wanted to add code like this: > >>> + select NET_DSA_TAG_DSA if (!NET_DSA_TAG_EDSA && >>>

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 14:56, Daniel Lezcano wrote: > Well, it is the same here, no ? Except, it is up to the user to disable > the option. I didn't wanted to add code like this: >> + select NET_DSA_TAG_DSA if (!NET_DSA_TAG_EDSA && >> !NET_DSA_TAG_TRAILER) Why should we select

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
On 10/30/2012 10:03 AM, Viresh Kumar wrote: > On 30 October 2012 14:30, Daniel Lezcano wrote: >> It is very curious if we disable all the configs option, a slave >> creation raise a BUG (cf. dsa_slave_create). IIUC, booting with NET_DSA >> enabled and none of the NET_DSA_TAG* enabled will raise a

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 14:30, Daniel Lezcano wrote: > It is very curious if we disable all the configs option, a slave > creation raise a BUG (cf. dsa_slave_create). IIUC, booting with NET_DSA > enabled and none of the NET_DSA_TAG* enabled will raise a BUG in the > probe function, right ? > > Maybe

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
On 10/30/2012 08:55 AM, Viresh Kumar wrote: > On 30 October 2012 13:23, Daniel Lezcano wrote: >>> From: Viresh Kumar > >>> config NET_DSA_TAG_DSA >>> - bool >>> + bool "Original DSA packet tagging format" >>> + select NET_DSt >> >> typo NET_DSA > > Unbelievable mistake :( > >

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 13:23, Daniel Lezcano wrote: >> From: Viresh Kumar >> config NET_DSA_TAG_DSA >> - bool >> + bool "Original DSA packet tagging format" >> + select NET_DSt > > typo NET_DSA Unbelievable mistake :( Will fix it after some reviews now :) -- viresh -- To unsubscribe

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
warnings. > > If my above explanation/assumption is correct, then please review following > patch: > > --x---x > > From: Viresh Kumar > Date: Mon, 29 Oct 2012 22:19:14 +0530 > Subject: [PATCH] net: dsa/sl

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
lease review following patch: --x---x From: Viresh Kumar Date: Mon, 29 Oct 2012 22:19:14 +0530 Subject: [PATCH] net: dsa/slave: Fix compilation warnings Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and CONFIG_NET_DSA

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 01:29, Ben Hutchings wrote: > On Mon, 2012-10-29 at 22:27 +0530, Viresh Kumar wrote: >> Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and >> CONFIG_NET_DSA_TAG_TRAILER is defined, we get following compilation warnings: >> >> net/dsa/slave.c:51:12:

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 01:29, Ben Hutchings bhutchi...@solarflare.com wrote: On Mon, 2012-10-29 at 22:27 +0530, Viresh Kumar wrote: Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and CONFIG_NET_DSA_TAG_TRAILER is defined, we get following compilation warnings:

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
, then please review following patch: --x---x From: Viresh Kumar viresh.ku...@linaro.org Date: Mon, 29 Oct 2012 22:19:14 +0530 Subject: [PATCH] net: dsa/slave: Fix compilation warnings Currently when none of CONFIG_NET_DSA_TAG_DSA

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
above explanation/assumption is correct, then please review following patch: --x---x From: Viresh Kumar viresh.ku...@linaro.org Date: Mon, 29 Oct 2012 22:19:14 +0530 Subject: [PATCH] net: dsa/slave: Fix compilation warnings

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 13:23, Daniel Lezcano daniel.lezc...@linaro.org wrote: From: Viresh Kumar viresh.ku...@linaro.org config NET_DSA_TAG_DSA - bool + bool Original DSA packet tagging format + select NET_DSt typo NET_DSA Unbelievable mistake :( Will fix it after some reviews

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
On 10/30/2012 08:55 AM, Viresh Kumar wrote: On 30 October 2012 13:23, Daniel Lezcano daniel.lezc...@linaro.org wrote: From: Viresh Kumar viresh.ku...@linaro.org config NET_DSA_TAG_DSA - bool + bool Original DSA packet tagging format + select NET_DSt typo NET_DSA

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 14:30, Daniel Lezcano daniel.lezc...@linaro.org wrote: It is very curious if we disable all the configs option, a slave creation raise a BUG (cf. dsa_slave_create). IIUC, booting with NET_DSA enabled and none of the NET_DSA_TAG* enabled will raise a BUG in the probe

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
On 10/30/2012 10:03 AM, Viresh Kumar wrote: On 30 October 2012 14:30, Daniel Lezcano daniel.lezc...@linaro.org wrote: It is very curious if we disable all the configs option, a slave creation raise a BUG (cf. dsa_slave_create). IIUC, booting with NET_DSA enabled and none of the NET_DSA_TAG*

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Viresh Kumar
On 30 October 2012 14:56, Daniel Lezcano daniel.lezc...@linaro.org wrote: Well, it is the same here, no ? Except, it is up to the user to disable the option. I didn't wanted to add code like this: + select NET_DSA_TAG_DSA if (!NET_DSA_TAG_EDSA !NET_DSA_TAG_TRAILER) Why should we

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-30 Thread Daniel Lezcano
On 10/30/2012 10:45 AM, Viresh Kumar wrote: On 30 October 2012 14:56, Daniel Lezcano daniel.lezc...@linaro.org wrote: Well, it is the same here, no ? Except, it is up to the user to disable the option. I didn't wanted to add code like this: + select NET_DSA_TAG_DSA if

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-29 Thread Ben Hutchings
On Mon, 2012-10-29 at 22:27 +0530, Viresh Kumar wrote: > Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and > CONFIG_NET_DSA_TAG_TRAILER is defined, we get following compilation warnings: > > net/dsa/slave.c:51:12: warning: 'dsa_slave_init' defined but not used >

[PATCH] net: dsa/slave: Fix compilation warnings

2012-10-29 Thread Viresh Kumar
Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and CONFIG_NET_DSA_TAG_TRAILER is defined, we get following compilation warnings: net/dsa/slave.c:51:12: warning: 'dsa_slave_init' defined but not used [-Wunused-function] net/dsa/slave.c:60:12: warning: 'dsa_slave_open'

[PATCH] net: dsa/slave: Fix compilation warnings

2012-10-29 Thread Viresh Kumar
Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and CONFIG_NET_DSA_TAG_TRAILER is defined, we get following compilation warnings: net/dsa/slave.c:51:12: warning: 'dsa_slave_init' defined but not used [-Wunused-function] net/dsa/slave.c:60:12: warning: 'dsa_slave_open'

Re: [PATCH] net: dsa/slave: Fix compilation warnings

2012-10-29 Thread Ben Hutchings
On Mon, 2012-10-29 at 22:27 +0530, Viresh Kumar wrote: Currently when none of CONFIG_NET_DSA_TAG_DSA, CONFIG_NET_DSA_TAG_EDSA and CONFIG_NET_DSA_TAG_TRAILER is defined, we get following compilation warnings: net/dsa/slave.c:51:12: warning: 'dsa_slave_init' defined but not used