lkml.org 
[lkml]   [2022]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] staging: vchiq_arm: add prototype of function vchiq_platform_init()
Date
Fix "no previous prototype" W=1 warning by adding the prototype of the
function vchiq_platform_init().

Note: vchiq_platform_init() is only called once in vchiq_probe(), so
presumably should be static function. However, making the function
static breaks the build.

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
---
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h
index 2aa46b119a46..d72edaf7e5e9 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h
@@ -122,6 +122,8 @@ vchiq_instance_get_trace(struct vchiq_instance *instance);
extern void
vchiq_instance_set_trace(struct vchiq_instance *instance, int trace);

+int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state);
+
#if IS_ENABLED(CONFIG_VCHIQ_CDEV)

extern void
--
2.35.1
\
 
 \ /
  Last update: 2022-03-02 22:39    [W:0.067 / U:3.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site