Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bus: fsl-mc: declare fsl_mc_bus_dpdbg_type static

Fix following sparse warning:

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

fsl_mc_bus_dpdbg_type is not used outside of fsl-mc-bus.c

Remove the EXPORT_SYMBOL and declare it static.

Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Link: https://patch.msgid.link/628c49881b3a1df76cfd2f8fd2aad976692a465a.1768566053.git.chleroy@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christophe Leroy (CS GROUP) and committed by
Greg Kroah-Hartman
45edeece 986d388e

+1 -2
+1 -2
drivers/bus/fsl-mc/fsl-mc-bus.c
··· 396 396 }; 397 397 EXPORT_SYMBOL_GPL(fsl_mc_bus_dpdmai_type); 398 398 399 - const struct device_type fsl_mc_bus_dpdbg_type = { 399 + static const struct device_type fsl_mc_bus_dpdbg_type = { 400 400 .name = "fsl_mc_bus_dpdbg" 401 401 }; 402 - EXPORT_SYMBOL_GPL(fsl_mc_bus_dpdbg_type); 403 402 404 403 static const struct device_type *fsl_mc_get_device_type(const char *type) 405 404 {