
Fix sparse warnings in below files - Add fallthrough statement in the switch case - Add missing header
Algapally Santosh Sagar (2): clk: zynqmp: Add fallthrough statement in the switch case mach-zynqmp: handoff: Add missing header
arch/arm/mach-zynqmp/handoff.c | 1 + drivers/clk/clk_zynqmp.c | 1 + 2 files changed, 2 insertions(+)

From: Algapally Santosh Sagar santoshsagar.algapally@amd.com
Add fallthrough statement in switch case to fix the sparse warning. In function 'zynqmp_clk_get_rate': warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Algapally Santosh Sagar santoshsagar.algapally@amd.com Signed-off-by: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com --- drivers/clk/clk_zynqmp.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index 45c679a627..be0ee50e0e 100644 --- a/drivers/clk/clk_zynqmp.c +++ b/drivers/clk/clk_zynqmp.c @@ -691,6 +691,7 @@ static ulong zynqmp_clk_get_rate(struct clk *clk) case topsw_lsbus: case sata_ref ... gpu_pp1_ref: two_divs = true; + fallthrough; case cpu_r5: case dbg_fpd: case ams_ref:

From: Algapally Santosh Sagar santoshsagar.algapally@amd.com
Add missing prototype to fix the sparse warning. warning: no previous prototype for 'bl2_plat_get_bl31_params' [-Wmissing-prototypes]
Signed-off-by: Algapally Santosh Sagar santoshsagar.algapally@amd.com Signed-off-by: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com --- arch/arm/mach-zynqmp/handoff.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-zynqmp/handoff.c b/arch/arm/mach-zynqmp/handoff.c index b9e0c6c536..511b241462 100644 --- a/arch/arm/mach-zynqmp/handoff.c +++ b/arch/arm/mach-zynqmp/handoff.c @@ -9,6 +9,7 @@ #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> +#include <spl.h>
/* * atfhandoffparams

On 5/19/23 13:38, Venkatesh Yadav Abbarapu wrote:
Fix sparse warnings in below files
- Add fallthrough statement in the switch case
- Add missing header
Algapally Santosh Sagar (2): clk: zynqmp: Add fallthrough statement in the switch case mach-zynqmp: handoff: Add missing header
arch/arm/mach-zynqmp/handoff.c | 1 + drivers/clk/clk_zynqmp.c | 1 + 2 files changed, 2 insertions(+)
Applied. M
participants (2)
-
Michal Simek
-
Venkatesh Yadav Abbarapu