[PATCH v2 2/6] xilinx: zynq: Add missing prototype for zynqmp_mmio_write

Ashok Reddy Soma ashok.reddy.soma at amd.com
Wed Jun 14 11:03:55 CEST 2023


From: Algapally Santosh Sagar <santoshsagar.algapally at amd.com>

Add missing prototype to fix the sparse warning, warning: no
previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes].

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally at amd.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at amd.com>
---

Changes in v2:
 - Move prototype declaration from sys_proto.h to include/zynqmp_firmware.h

 include/zynqmp_firmware.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/zynqmp_firmware.h b/include/zynqmp_firmware.h
index f7a4a39d35..3cbd91e216 100644
--- a/include/zynqmp_firmware.h
+++ b/include/zynqmp_firmware.h
@@ -454,6 +454,7 @@ int zynqmp_pm_set_sd_config(u32 node, enum pm_sd_config_type config, u32 value);
 int zynqmp_pm_set_gem_config(u32 node, enum pm_gem_config_type config,
 			     u32 value);
 int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id);
+int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);
 
 /* Type of Config Object */
 #define PM_CONFIG_OBJECT_TYPE_BASE	0x1U
-- 
2.17.1



More information about the U-Boot mailing list