| Message ID | eac8d0ab60a018d6c59aa28c49691839a3eec174.1762511327.git.michal.simek@amd.com |
|---|---|
| State | New |
| Delegated to: | Michal Simek |
| Headers | show |
| Series | clk: versal: Use __data macro for moving variable to data section | expand |
On 11/7/25 11:28, Michal Simek wrote: > 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 <michal.simek@amd.com> > --- > > drivers/clk/clk_versal.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c > index c62a747036d9..0c754943deda 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 > Applied. M
diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c index c62a747036d9..0c754943deda 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
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 <michal.simek@amd.com> --- drivers/clk/clk_versal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)