soc: xilinx: zynqmp: Mark soc_xilinx_zynqmp_get_machine() as static
PATCH 1/1 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 <[email protected]>
---
drivers/soc/soc_xilinx_zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/soc_xilinx_zynqmp.c +1 -1
@@ -285,7 +285,7 @@ static int soc_xilinx_zynqmp_get_family(struct udevice *dev, char *buf, int sizereturn 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;
Signature · 1 line
2.17.1
Quoted 17 lines · Venkatesh Yadav Abbarapu
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]>---
drivers/soc/soc_xilinx_zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/soc/soc_xilinx_zynqmp.c +0
-0
drivers/soc/soc_xilinx_zynqmp.c static int soc_xilinx_zynqmp_get_family(struct udevice *dev, char *buf, int size · line 291
Quoted 8 lines
drivers/soc/soc_xilinx_zynqmp.c +1
-1@@ -285,7 +285,7 @@ static int soc_xilinx_zynqmp_get_family(struct udevice *dev, char *buf, int sizereturn 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;
Applied.
M