Re: [PATCH 1/7] staging: typec: tcpci: declare private structure as static
On Tue, May 09, 2017 at 07:46:17PM +0200, Greg Kroah-Hartman wrote: > On Tue, May 09, 2017 at 09:04:53AM -0700, Guenter Roeck wrote: > > From: Olivier Leveque > > > > This fixes a sparse warning regarding an undeclared symbol. Since the > > structure tcpci_tcpc_config is private to tcpci.c, it should be declared as > > static. > > > > Signed-off-by: Olivier Leveque > > Signed-off-by: Guenter Roeck > > --- > > drivers/staging/typec/tcpci.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Are any of these bugfixes for 4.12-stable, or can they wait for > 4.13-rc1? > They should all go into v4.12. There are no functionality enhancements, only real bug fixes. Thanks, Guenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH 1/7] staging: typec: tcpci: declare private structure as static
On Tue, May 09, 2017 at 09:04:53AM -0700, Guenter Roeck wrote: > From: Olivier Leveque > > This fixes a sparse warning regarding an undeclared symbol. Since the > structure tcpci_tcpc_config is private to tcpci.c, it should be declared as > static. > > Signed-off-by: Olivier Leveque > Signed-off-by: Guenter Roeck > --- > drivers/staging/typec/tcpci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Are any of these bugfixes for 4.12-stable, or can they wait for 4.13-rc1? thanks, greg k-h ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH 1/7] staging: typec: tcpci: declare private structure as static
From: Olivier Leveque This fixes a sparse warning regarding an undeclared symbol. Since the structure tcpci_tcpc_config is private to tcpci.c, it should be declared as static. Signed-off-by: Olivier Leveque Signed-off-by: Guenter Roeck --- drivers/staging/typec/tcpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c index 5e5be74c7850..df72d8b01e73 100644 --- a/drivers/staging/typec/tcpci.c +++ b/drivers/staging/typec/tcpci.c @@ -425,7 +425,7 @@ static const struct regmap_config tcpci_regmap_config = { .max_register = 0x7F, /* 0x80 .. 0xFF are vendor defined */ }; -const struct tcpc_config tcpci_tcpc_config = { +static const struct tcpc_config tcpci_tcpc_config = { .type = TYPEC_PORT_DFP, .default_role = TYPEC_SINK, }; -- 2.7.4 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel