[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1473677559-15123-1-git-send-email-baoyou.xie@linaro.org>
Date: Mon, 12 Sep 2016 18:52:39 +0800
From: Baoyou Xie <baoyou.xie@...aro.org>
To: will.deacon@....com, suzuki.poulose@....com, olof@...om.net,
mark.rutland@....com, bigeasy@...utronix.de, a.hajda@...sung.com
Cc: linux-kernel@...r.kernel.org, arnd@...db.de, baoyou.xie@...aro.org,
xie.baoyou@....com.cn
Subject: [PATCH v2] arm-cci: add cci_enable_port_for_self() declaration in arm-cci.h
We get 1 warning when building kernel with W=1:
drivers/bus/arm-cci.c:2027:25: warning: no previous prototype for 'cci_enable_port_for_self' [-Wmissing-prototypes]
In fact, this function is used in a few files,
but should be declared in a header file.
So this patch adds the declaration in arm-cci.h.
Signed-off-by: Baoyou Xie <baoyou.xie@...aro.org>
---
include/linux/arm-cci.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/arm-cci.h b/include/linux/arm-cci.h
index 521ec1f..626083b 100644
--- a/include/linux/arm-cci.h
+++ b/include/linux/arm-cci.h
@@ -39,6 +39,7 @@ extern int cci_ace_get_port(struct device_node *dn);
extern int cci_disable_port_by_cpu(u64 mpidr);
extern int __cci_control_port_by_device(struct device_node *dn, bool enable);
extern int __cci_control_port_by_index(u32 port, bool enable);
+extern asmlinkage void __naked cci_enable_port_for_self(void);
#else
static inline int cci_ace_get_port(struct device_node *dn)
{
@@ -54,6 +55,9 @@ static inline int __cci_control_port_by_index(u32 port, bool enable)
{
return -ENODEV;
}
+static inline void ci_enable_port_for_self(void)
+{
+}
#endif
#define cci_disable_port_by_device(dev) \
--
2.7.4
Powered by blists - more mailing lists