public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: vchiq: add 'static' to function definition
@ 2022-10-22  4:35 Scott J. Crouch
  2022-10-22  8:07 ` Greg Kroah-Hartman
  2022-10-22 18:04 ` kernel test robot
  0 siblings, 2 replies; 7+ messages in thread
From: Scott J. Crouch @ 2022-10-22  4:35 UTC (permalink / raw)
  To: Florian Fainelli, Broadcom internal kernel review list,
	Greg Kroah-Hartman
  Cc: kernel-janitors, Scott J. Crouch, linux-rpi-kernel,
	linux-arm-kernel, linux-staging, linux-kernel

This fixes the following sparse error:

    warning: symbol 'vchiq_platform_init' was not declared. Should it be static?

Signed-off-by: Scott J. Crouch <scottjcrouch@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.37.3


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

end of thread, other threads:[~2022-10-31  3:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-22  4:35 [PATCH] staging: vchiq: add 'static' to function definition Scott J. Crouch
2022-10-22  8:07 ` Greg Kroah-Hartman
2022-10-27 14:08   ` Arnd Bergmann
2022-10-30  2:43     ` Scott J. Crouch
2022-10-30 10:46       ` Arnd Bergmann
2022-10-31  3:54         ` Scott J. Crouch
2022-10-22 18:04 ` kernel test robot

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