Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1637986 > unrolled thread

[PATCH] staging: typec: Make undeclared symbol static

Started byGuru Das Srinagesh <gurooodas@gmail.com>
First post2017-05-09 10:50 +0200
Last post2017-05-09 18:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: typec: Make undeclared symbol static Guru Das Srinagesh <gurooodas@gmail.com> - 2017-05-09 10:50 +0200
    Re: [PATCH] staging: typec: Make undeclared symbol static Guenter Roeck <linux@roeck-us.net> - 2017-05-09 18:10 +0200

#1637986 — [PATCH] staging: typec: Make undeclared symbol static

FromGuru Das Srinagesh <gurooodas@gmail.com>
Date2017-05-09 10:50 +0200
Subject[PATCH] staging: typec: Make undeclared symbol static
Message-ID<tF90e-7KQ-15@gated-at.bofh.it>
Fix sparse warning:
  drivers/staging/typec/tcpci.c:428:26: warning: symbol 'tcpci_tcpc_config'
  was not declared. Should it be static?

Signed-off-by: Guru Das Srinagesh <gurooodas@gmail.com>
---
 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 5e5be74..df72d8b 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

[toc] | [next] | [standalone]


#1638246

FromGuenter Roeck <linux@roeck-us.net>
Date2017-05-09 18:10 +0200
Message-ID<tFfS2-41K-17@gated-at.bofh.it>
In reply to#1637986
On Tue, May 09, 2017 at 01:48:53AM -0700, Guru Das Srinagesh wrote:
> Fix sparse warning:
>   drivers/staging/typec/tcpci.c:428:26: warning: symbol 'tcpci_tcpc_config'
>   was not declared. Should it be static?
> 
> Signed-off-by: Guru Das Srinagesh <gurooodas@gmail.com>

Olivier Leveque already sent a similar patch last week.

Thanks,
Guenter

> ---
>  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 5e5be74..df72d8b 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
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web