lkml.org 
[lkml]   [2019]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] net: dsa: mv88e6xxx: fix unused function warning
On Mon, Mar 4, 2019 at 9:42 PM Heiner Kallweit <hkallweit1@gmail.com> 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 'mv88e6xxx_ports_cmode_init' [-Werror,-Wunused-function]
> >
> > Move it into the same #ifdef block to shut up the warning.
> >
> > Fixes: ed8fe20205ac ("net: dsa: mv88e6xxx: prevent interrupt storm caused by mv88e6390x_port_set_cmode")
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> A fix has been submitted already. See discussion here:
> https://marc.info/?t=155170356600004&r=1&w=2
> and the fix here:
> https://patchwork.ozlabs.org/patch/1051275/

Ok, that looks good, thanks for the reply!

Arnd

\
 
 \ /
  Last update: 2019-03-04 22:08    [W:0.041 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site