From: Michal Simek Date: Fri, 7 Nov 2025 10:28:49 +0000 (+0100) Subject: clk: versal: Use __data macro for moving variable to data section X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f0332b180321c1c0a2f8decc6005e37202bcc9;p=thirdparty%2Fu-boot.git clk: versal: Use __data macro for moving variable to data section The commit 1b267fe1824e ("firmware: xilinx: Prepare code for new SMC firmware format") introduce new __data macro that's why use it in clock driver too. Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/eac8d0ab60a018d6c59aa28c49691839a3eec174.1762511327.git.michal.simek@amd.com --- diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c index c62a747036d..0c754943ded 100644 --- a/drivers/clk/clk_versal.c +++ b/drivers/clk/clk_versal.c @@ -106,8 +106,8 @@ struct versal_clk_priv { struct versal_clock *clk; }; -static ulong pl_alt_ref_clk __section(".data"); -static ulong ref_clk __section(".data"); +static ulong __data pl_alt_ref_clk; +static ulong __data ref_clk; struct versal_pm_query_data { u32 qid; @@ -116,8 +116,8 @@ struct versal_pm_query_data { u32 arg3; }; -static struct versal_clock *clock __section(".data"); -static unsigned int clock_max_idx __section(".data"); +static struct versal_clock __data *clock; +static unsigned int __data clock_max_idx; #define PM_QUERY_DATA 35