All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bus: fsl-mc: make fsl_mc_bus_dpdbg_type static
@ 2021-07-30 10:28 Jiapeng Chong
  0 siblings, 0 replies; only message in thread
From: Jiapeng Chong @ 2021-07-30 10:28 UTC (permalink / raw)
  To: stuyoder; +Cc: laurentiu.tudor, linux-kernel, Jiapeng Chong

This symbol is not used outside of fsl-mc-bus.c, so marks it static.

Fix the following sparse warning:

drivers/bus/fsl-mc/fsl-mc-bus.c:395:20: warning: symbol
'fsl_mc_bus_dpdbg_type' was not declared. Should it be static?

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/bus/fsl-mc/fsl-mc-bus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c
index 6273f78..1fcc759 100644
--- a/drivers/bus/fsl-mc/fsl-mc-bus.c
+++ b/drivers/bus/fsl-mc/fsl-mc-bus.c
@@ -392,10 +392,9 @@ struct device_type fsl_mc_bus_dpdmai_type = {
 };
 EXPORT_SYMBOL_GPL(fsl_mc_bus_dpdmai_type);
 
-struct device_type fsl_mc_bus_dpdbg_type = {
+static struct device_type fsl_mc_bus_dpdbg_type = {
 	.name = "fsl_mc_bus_dpdbg"
 };
-EXPORT_SYMBOL_GPL(fsl_mc_bus_dpdbg_type);
 
 static struct device_type *fsl_mc_get_device_type(const char *type)
 {
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-30 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 10:28 [PATCH] bus: fsl-mc: make fsl_mc_bus_dpdbg_type static Jiapeng Chong

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.