Re: [PATCH] net: dsa: mv88e6xxx: fix unused function warning

2019-03-04 Thread Arnd Bergmann
On Mon, Mar 4, 2019 at 9:42 PM Heiner Kallweit wrote: > > On 04.03.2019 21:36, Arnd Bergmann wrote: > > The newly introduced function is only used inside of an #ifdef > > and causes a warning when that is disabled: > > > > drivers/net/dsa/mv88e6xxx/chip.c:4623:13: error: unused function > > 'mv88

Re: [PATCH] net: dsa: mv88e6xxx: fix unused function warning

2019-03-04 Thread Heiner Kallweit
On 04.03.2019 21:36, Arnd Bergmann wrote: > The newly introduced function is only used inside of an #ifdef > and causes a warning when that is disabled: > > drivers/net/dsa/mv88e6xxx/chip.c:4623:13: error: unused function > 'mv88e6xxx_ports_cmode_init' [-Werror,-Wunused-function] > > Move it int

[PATCH] net: dsa: mv88e6xxx: fix unused function warning

2019-03-04 Thread Arnd Bergmann
The newly introduced function is only used inside of an #ifdef and causes a warning when that is disabled: drivers/net/dsa/mv88e6xxx/chip.c:4623:13: error: unused function 'mv88e6xxx_ports_cmode_init' [-Werror,-Wunused-function] Move it into the same #ifdef block to shut up the warning. Fixes: