]> Git Repo - J-u-boot.git/commitdiff
soc: xilinx: zynqmp: Mark soc_xilinx_zynqmp_get_machine() as static
authorVenkatesh Yadav Abbarapu <[email protected]>
Tue, 4 Oct 2022 05:52:01 +0000 (11:22 +0530)
committerMichal Simek <[email protected]>
Mon, 10 Oct 2022 10:28:08 +0000 (12:28 +0200)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
drivers/soc/soc_xilinx_zynqmp.c

index c10fc7d4449bff6d26fc1a539cd59ae25afb597a..a51bcdb478fb8df5147826504145bdfc98af875c 100644 (file)
@@ -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;
This page took 0.035448 seconds and 4 git commands to generate.