All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] coresight: tmc: mark coresight_tmc_groups with static
@ 2020-05-08  9:13 ` Chunyan Zhang
  0 siblings, 0 replies; 6+ messages in thread
From: Chunyan Zhang @ 2020-05-08  9:13 UTC (permalink / raw)
  To: Mathieu Poirier; +Cc: linux-kernel, linux-arm-kernel, Chunyan Zhang

From: Chunyan Zhang <chunyan.zhang@unisoc.com>

Sparse reports a warning like:
drivers/hwtracing/coresight/coresight-tmc.c:364:30: warning: symbol
'coresight_tmc_groups' was not declared. Should it be static? [sparse]

coresight_tmc_groups is used in the local file only, so it should be
marked with static.

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
---
 drivers/hwtracing/coresight/coresight-tmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c
index 1cf82fa..39fba1d 100644
--- a/drivers/hwtracing/coresight/coresight-tmc.c
+++ b/drivers/hwtracing/coresight/coresight-tmc.c
@@ -361,7 +361,7 @@ static ssize_t buffer_size_store(struct device *dev,
 	.name = "mgmt",
 };
 
-const struct attribute_group *coresight_tmc_groups[] = {
+static const struct attribute_group *coresight_tmc_groups[] = {
 	&coresight_tmc_group,
 	&coresight_tmc_mgmt_group,
 	NULL,
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] coresight: tmc: mark coresight_tmc_groups with static
@ 2020-05-08  9:13 ` Chunyan Zhang
  0 siblings, 0 replies; 6+ messages in thread
From: Chunyan Zhang @ 2020-05-08  9:13 UTC (permalink / raw)
  To: Mathieu Poirier; +Cc: Chunyan Zhang, linux-kernel, linux-arm-kernel

From: Chunyan Zhang <chunyan.zhang@unisoc.com>

Sparse reports a warning like:
drivers/hwtracing/coresight/coresight-tmc.c:364:30: warning: symbol
'coresight_tmc_groups' was not declared. Should it be static? [sparse]

coresight_tmc_groups is used in the local file only, so it should be
marked with static.

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
---
 drivers/hwtracing/coresight/coresight-tmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c
index 1cf82fa..39fba1d 100644
--- a/drivers/hwtracing/coresight/coresight-tmc.c
+++ b/drivers/hwtracing/coresight/coresight-tmc.c
@@ -361,7 +361,7 @@ static ssize_t buffer_size_store(struct device *dev,
 	.name = "mgmt",
 };
 
-const struct attribute_group *coresight_tmc_groups[] = {
+static const struct attribute_group *coresight_tmc_groups[] = {
 	&coresight_tmc_group,
 	&coresight_tmc_mgmt_group,
 	NULL,
-- 
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] coresight: tmc: mark coresight_tmc_groups with static
  2020-05-08  9:13 ` Chunyan Zhang
@ 2020-05-11 16:46   ` Mathieu Poirier
  -1 siblings, 0 replies; 6+ messages in thread
From: Mathieu Poirier @ 2020-05-11 16:46 UTC (permalink / raw)
  To: Chunyan Zhang; +Cc: linux-kernel, linux-arm-kernel, Chunyan Zhang

Hi Chunyan,

On Fri, May 08, 2020 at 05:13:40PM +0800, Chunyan Zhang wrote:
> From: Chunyan Zhang <chunyan.zhang@unisoc.com>
> 
> Sparse reports a warning like:
> drivers/hwtracing/coresight/coresight-tmc.c:364:30: warning: symbol
> 'coresight_tmc_groups' was not declared. Should it be static? [sparse]
> 
> coresight_tmc_groups is used in the local file only, so it should be
> marked with static.
> 
> Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
> ---
>  drivers/hwtracing/coresight/coresight-tmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c
> index 1cf82fa..39fba1d 100644
> --- a/drivers/hwtracing/coresight/coresight-tmc.c
> +++ b/drivers/hwtracing/coresight/coresight-tmc.c
> @@ -361,7 +361,7 @@ static ssize_t buffer_size_store(struct device *dev,
>  	.name = "mgmt",
>  };
>  
> -const struct attribute_group *coresight_tmc_groups[] = {
> +static const struct attribute_group *coresight_tmc_groups[] = {

This has already been addressed by Stephen [1] earlier in this cycle.  It is
currently in linux-next and will be submitted for inclusion in the next cycle.

Thanks,
Mathieu

[1]. https://www.spinics.net/lists/arm-kernel/msg801714.html

>  	&coresight_tmc_group,
>  	&coresight_tmc_mgmt_group,
>  	NULL,
> -- 
> 1.9.1
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] coresight: tmc: mark coresight_tmc_groups with static
@ 2020-05-11 16:46   ` Mathieu Poirier
  0 siblings, 0 replies; 6+ messages in thread
From: Mathieu Poirier @ 2020-05-11 16:46 UTC (permalink / raw)
  To: Chunyan Zhang; +Cc: Chunyan Zhang, linux-kernel, linux-arm-kernel

Hi Chunyan,

On Fri, May 08, 2020 at 05:13:40PM +0800, Chunyan Zhang wrote:
> From: Chunyan Zhang <chunyan.zhang@unisoc.com>
> 
> Sparse reports a warning like:
> drivers/hwtracing/coresight/coresight-tmc.c:364:30: warning: symbol
> 'coresight_tmc_groups' was not declared. Should it be static? [sparse]
> 
> coresight_tmc_groups is used in the local file only, so it should be
> marked with static.
> 
> Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
> ---
>  drivers/hwtracing/coresight/coresight-tmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c
> index 1cf82fa..39fba1d 100644
> --- a/drivers/hwtracing/coresight/coresight-tmc.c
> +++ b/drivers/hwtracing/coresight/coresight-tmc.c
> @@ -361,7 +361,7 @@ static ssize_t buffer_size_store(struct device *dev,
>  	.name = "mgmt",
>  };
>  
> -const struct attribute_group *coresight_tmc_groups[] = {
> +static const struct attribute_group *coresight_tmc_groups[] = {

This has already been addressed by Stephen [1] earlier in this cycle.  It is
currently in linux-next and will be submitted for inclusion in the next cycle.

Thanks,
Mathieu

[1]. https://www.spinics.net/lists/arm-kernel/msg801714.html

>  	&coresight_tmc_group,
>  	&coresight_tmc_mgmt_group,
>  	NULL,
> -- 
> 1.9.1
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] coresight: tmc: mark coresight_tmc_groups with static
  2020-05-11 16:46   ` Mathieu Poirier
@ 2020-05-12  8:28     ` Chunyan Zhang
  -1 siblings, 0 replies; 6+ messages in thread
From: Chunyan Zhang @ 2020-05-12  8:28 UTC (permalink / raw)
  To: Mathieu Poirier; +Cc: Linux Kernel Mailing List, Linux ARM, Chunyan Zhang

On Tue, 12 May 2020 at 00:46, Mathieu Poirier
<mathieu.poirier@linaro.org> wrote:
>
> Hi Chunyan,
>
> On Fri, May 08, 2020 at 05:13:40PM +0800, Chunyan Zhang wrote:
> > From: Chunyan Zhang <chunyan.zhang@unisoc.com>
> >
> > Sparse reports a warning like:
> > drivers/hwtracing/coresight/coresight-tmc.c:364:30: warning: symbol
> > 'coresight_tmc_groups' was not declared. Should it be static? [sparse]
> >
> > coresight_tmc_groups is used in the local file only, so it should be
> > marked with static.
> >
> > Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
> > ---
> >  drivers/hwtracing/coresight/coresight-tmc.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c
> > index 1cf82fa..39fba1d 100644
> > --- a/drivers/hwtracing/coresight/coresight-tmc.c
> > +++ b/drivers/hwtracing/coresight/coresight-tmc.c
> > @@ -361,7 +361,7 @@ static ssize_t buffer_size_store(struct device *dev,
> >       .name = "mgmt",
> >  };
> >
> > -const struct attribute_group *coresight_tmc_groups[] = {
> > +static const struct attribute_group *coresight_tmc_groups[] = {
>
> This has already been addressed by Stephen [1] earlier in this cycle.  It is
> currently in linux-next and will be submitted for inclusion in the next cycle.
>
> Thanks,
> Mathieu
>
> [1]. https://www.spinics.net/lists/arm-kernel/msg801714.html

It is better, I will backport this patch。

Thanks Mathieu!

>
> >       &coresight_tmc_group,
> >       &coresight_tmc_mgmt_group,
> >       NULL,
> > --
> > 1.9.1
> >

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] coresight: tmc: mark coresight_tmc_groups with static
@ 2020-05-12  8:28     ` Chunyan Zhang
  0 siblings, 0 replies; 6+ messages in thread
From: Chunyan Zhang @ 2020-05-12  8:28 UTC (permalink / raw)
  To: Mathieu Poirier; +Cc: Chunyan Zhang, Linux Kernel Mailing List, Linux ARM

On Tue, 12 May 2020 at 00:46, Mathieu Poirier
<mathieu.poirier@linaro.org> wrote:
>
> Hi Chunyan,
>
> On Fri, May 08, 2020 at 05:13:40PM +0800, Chunyan Zhang wrote:
> > From: Chunyan Zhang <chunyan.zhang@unisoc.com>
> >
> > Sparse reports a warning like:
> > drivers/hwtracing/coresight/coresight-tmc.c:364:30: warning: symbol
> > 'coresight_tmc_groups' was not declared. Should it be static? [sparse]
> >
> > coresight_tmc_groups is used in the local file only, so it should be
> > marked with static.
> >
> > Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
> > ---
> >  drivers/hwtracing/coresight/coresight-tmc.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c
> > index 1cf82fa..39fba1d 100644
> > --- a/drivers/hwtracing/coresight/coresight-tmc.c
> > +++ b/drivers/hwtracing/coresight/coresight-tmc.c
> > @@ -361,7 +361,7 @@ static ssize_t buffer_size_store(struct device *dev,
> >       .name = "mgmt",
> >  };
> >
> > -const struct attribute_group *coresight_tmc_groups[] = {
> > +static const struct attribute_group *coresight_tmc_groups[] = {
>
> This has already been addressed by Stephen [1] earlier in this cycle.  It is
> currently in linux-next and will be submitted for inclusion in the next cycle.
>
> Thanks,
> Mathieu
>
> [1]. https://www.spinics.net/lists/arm-kernel/msg801714.html

It is better, I will backport this patch。

Thanks Mathieu!

>
> >       &coresight_tmc_group,
> >       &coresight_tmc_mgmt_group,
> >       NULL,
> > --
> > 1.9.1
> >

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-12  8:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08  9:13 [PATCH] coresight: tmc: mark coresight_tmc_groups with static Chunyan Zhang
2020-05-08  9:13 ` Chunyan Zhang
2020-05-11 16:46 ` Mathieu Poirier
2020-05-11 16:46   ` Mathieu Poirier
2020-05-12  8:28   ` Chunyan Zhang
2020-05-12  8:28     ` Chunyan Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.