Le 17/06/2016 17:11, Ben Dooks a écrit : > Make at91_dt_syscon_sfr() static as it is not used or declared > outside the drivers/usb/host/ohci-at91.c file. > > drivers/usb/host/ohci-at91.c:144:15: warning: symbol 'at91_dt_syscon_sfr' was > not declared. Should it be static? > > Signed-off-by: Ben Dooks <[email protected]> > --- > Cc: Alan Stern <[email protected]> > Cc: Greg Kroah-Hartman <[email protected]> > Cc: [email protected] > Cc: Nicolas Ferre <[email protected]> > Cc: Alexandre Belloni <[email protected]>
Acked-by: Nicolas Ferre <[email protected]> > Cc: Jean-Christophe Plagniol-Villard <[email protected]> > --- > drivers/usb/host/ohci-at91.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c > index 54e8feb..a69b421 100644 > --- a/drivers/usb/host/ohci-at91.c > +++ b/drivers/usb/host/ohci-at91.c > @@ -141,7 +141,7 @@ static void at91_stop_hc(struct platform_device *pdev) > > /*-------------------------------------------------------------------------*/ > > -struct regmap *at91_dt_syscon_sfr(void) > +static struct regmap *at91_dt_syscon_sfr(void) > { > struct regmap *regmap; > > -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
