summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>2022-10-04 11:22:01 +0530
committerMichal Simek <michal.simek@amd.com>2022-10-10 12:28:08 +0200
commit024cfd0ab5aacc809d24991902705f58c73da06e (patch)
tree86d139a19b9b69c2ffbe378c0510f22e08416786 /drivers/soc
parentfaf6a286f1329e398083a85e59c26fccc943c47d (diff)
downloadu-boot-024cfd0ab5aacc809d24991902705f58c73da06e.tar.gz
u-boot-024cfd0ab5aacc809d24991902705f58c73da06e.tar.bz2
u-boot-024cfd0ab5aacc809d24991902705f58c73da06e.zip
soc: xilinx: zynqmp: Mark soc_xilinx_zynqmp_get_machine() as static
Fix the following sparse and compile time warning triggered with W=1: drivers/soc/soc_xilinx_zynqmp.c:288:5: warning: no previous prototype for 'soc_xilinx_zynqmp_get_machine' [-Wmissing-prototypes] Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Link: https://lore.kernel.org/r/20221004055201.26146-1-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/soc_xilinx_zynqmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c
index c10fc7d444..a51bcdb478 100644
--- a/drivers/soc/soc_xilinx_zynqmp.c
+++ b/drivers/soc/soc_xilinx_zynqmp.c
@@ -285,7 +285,7 @@ static int soc_xilinx_zynqmp_get_family(struct udevice *dev, char *buf, int size
return snprintf(buf, size, "%s", priv->family);
}
-int soc_xilinx_zynqmp_get_machine(struct udevice *dev, char *buf, int size)
+static int soc_xilinx_zynqmp_get_machine(struct udevice *dev, char *buf, int size)
{
struct soc_xilinx_zynqmp_priv *priv = dev_get_priv(dev);
const char *machine = priv->machine;