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>
This commit is contained in:

committed by
Michal Simek

parent
faf6a286f1
commit
024cfd0ab5
@@ -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);
|
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);
|
struct soc_xilinx_zynqmp_priv *priv = dev_get_priv(dev);
|
||||||
const char *machine = priv->machine;
|
const char *machine = priv->machine;
|
||||||
|
Reference in New Issue
Block a user