Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: vchiq_arm.c: Declare vchiq_platform_init as static
@ 2023-01-11  8:01 Gaurav Pathak
  2023-01-11  9:00 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Gaurav Pathak @ 2023-01-11  8:01 UTC (permalink / raw)
  To: f.fainelli
  Cc: bcm-kernel-feedback-list, linux-rpi-kernel, linux-arm-kernel,
	linux-staging

Modified vchiq_platform_init() as static to fix sparse warning
> warning: symbol 'vchiq_platform_init' was not declared. Should it be
> static?

Signed-off-by: Gaurav Pathak <gauravpathak129@gmail.com>
---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
index dc33490ba7fb..ffa517077b80 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
@@ -462,7 +462,7 @@ free_pagelist(struct vchiq_instance *instance, struct vchiq_pagelist_info *pagel
 	cleanup_pagelistinfo(instance, pagelistinfo);
 }
 
-int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
+static int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
 {
 	struct device *dev = &pdev->dev;
 	struct vchiq_drvdata *drvdata = platform_get_drvdata(pdev);
-- 
2.39.0


_______________________________________________
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] 3+ messages in thread

* Re: [PATCH] staging: vchiq_arm.c: Declare vchiq_platform_init as static
  2023-01-11  8:01 [PATCH] staging: vchiq_arm.c: Declare vchiq_platform_init as static Gaurav Pathak
@ 2023-01-11  9:00 ` Greg KH
  2023-01-11  9:25   ` Gaurav Pathak
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2023-01-11  9:00 UTC (permalink / raw)
  To: Gaurav Pathak
  Cc: f.fainelli, bcm-kernel-feedback-list, linux-rpi-kernel,
	linux-arm-kernel, linux-staging

On Wed, Jan 11, 2023 at 01:31:24PM +0530, Gaurav Pathak wrote:
> Modified vchiq_platform_init() as static to fix sparse warning
> > warning: symbol 'vchiq_platform_init' was not declared. Should it be
> > static?

Put the warning line all on one line, no need to wrap that.

> Signed-off-by: Gaurav Pathak <gauravpathak129@gmail.com>
> ---
>  drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
> index dc33490ba7fb..ffa517077b80 100644
> --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
> +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
> @@ -462,7 +462,7 @@ free_pagelist(struct vchiq_instance *instance, struct vchiq_pagelist_info *pagel
>  	cleanup_pagelistinfo(instance, pagelistinfo);
>  }
>  
> -int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
> +static int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
>  {
>  	struct device *dev = &pdev->dev;
>  	struct vchiq_drvdata *drvdata = platform_get_drvdata(pdev);
> -- 
> 2.39.0
> 
> 

What changed to enable this version of the patch to work properly
compared to the previous submissions that broke the build?  Did you test
this and it now works properly?

thanks,

greg k-h

_______________________________________________
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] 3+ messages in thread

* Re: [PATCH] staging: vchiq_arm.c: Declare vchiq_platform_init as static
  2023-01-11  9:00 ` Greg KH
@ 2023-01-11  9:25   ` Gaurav Pathak
  0 siblings, 0 replies; 3+ messages in thread
From: Gaurav Pathak @ 2023-01-11  9:25 UTC (permalink / raw)
  To: Greg KH
  Cc: f.fainelli, bcm-kernel-feedback-list, linux-rpi-kernel,
	linux-arm-kernel, linux-staging


Hi Greg,

After submitting the patch, I realized this is the duplicate patch of https://www.spinics.net/lists/arm-kernel/msg976512.html
I am in the process of reproducing the issue reported by kernel test robot in the original patch submission. 
If I am successful, I will try to fix other warnings.

Best,
Gaurav

On Wed, Jan 11, 2023 at 10:00:37AM +0100, Greg KH wrote:
> On Wed, Jan 11, 2023 at 01:31:24PM +0530, Gaurav Pathak wrote:
> > Modified vchiq_platform_init() as static to fix sparse warning
> > > warning: symbol 'vchiq_platform_init' was not declared. Should it be
> > > static?
> 
> Put the warning line all on one line, no need to wrap that.
> 
> > Signed-off-by: Gaurav Pathak <gauravpathak129@gmail.com>
> > ---
> >  drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
> > index dc33490ba7fb..ffa517077b80 100644
> > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
> > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
> > @@ -462,7 +462,7 @@ free_pagelist(struct vchiq_instance *instance, struct vchiq_pagelist_info *pagel
> >  	cleanup_pagelistinfo(instance, pagelistinfo);
> >  }
> >  
> > -int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
> > +static int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
> >  {
> >  	struct device *dev = &pdev->dev;
> >  	struct vchiq_drvdata *drvdata = platform_get_drvdata(pdev);
> > -- 
> > 2.39.0
> > 
> > 
> 
> What changed to enable this version of the patch to work properly
> compared to the previous submissions that broke the build?  Did you test
> this and it now works properly?
> 
> thanks,
> 
> greg k-h

_______________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2023-01-11  9:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11  8:01 [PATCH] staging: vchiq_arm.c: Declare vchiq_platform_init as static Gaurav Pathak
2023-01-11  9:00 ` Greg KH
2023-01-11  9:25   ` Gaurav Pathak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox