[PATCH] clk: microchip: core: fix pointer being initialized twice.

Chen Changcheng posted 1 patch 1 week, 4 days ago
drivers/clk/microchip/clk-core.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] clk: microchip: core: fix pointer being initialized twice.
Posted by Chen Changcheng 1 week, 4 days ago
fix sparse warnings: (new ones prefixed by >>)
>> drivers/clk/microchip/clk-core.c:915:10: sparse: sparse: Initializer entry defined twice
   drivers/clk/microchip/clk-core.c:919:10: sparse:   also defined here

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511222115.uvHrP95A-lkp@intel.com/
Fixes: e9f039c08cdc ("clk: microchip: core: convert from round_rate() to determine_rate()")
Signed-off-by: Chen Changcheng <chenchangcheng@kylinos.cn>
---
 drivers/clk/microchip/clk-core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clk/microchip/clk-core.c b/drivers/clk/microchip/clk-core.c
index b34348d491f3..20f25d2db05d 100644
--- a/drivers/clk/microchip/clk-core.c
+++ b/drivers/clk/microchip/clk-core.c
@@ -916,7 +916,6 @@ const struct clk_ops pic32_sclk_ops = {
 	.set_rate	= sclk_set_rate,
 	.recalc_rate	= sclk_get_rate,
 	.init		= sclk_init,
-	.determine_rate = __clk_mux_determine_rate,
 };
 
 /* sclk with no slew and no post-divider */

base-commit: cc3ee4ba57b76deefb52aee5f57a46dc07bda9f7
prerequisite-patch-id: 6cc5a0ec0db4756cb95c5d67a3d27a57288fdaa7
-- 
2.25.1
Re: [PATCH] clk: microchip: core: fix pointer being initialized twice.
Posted by chenchangcheng@kylinos.cn 1 week, 4 days ago

Sorry, there is no need to reply to this repair



--------------
Chen Changcheng
chenchangcheng@kylinos.cn





>fix sparse warnings: (new ones prefixed by >>)
>>> drivers/clk/microchip/clk-core.c:915:10: sparse: sparse: Initializer entry defined twice
>?? drivers/clk/microchip/clk-core.c:919:10: sparse:?? also defined here
>
>Reported-by: kernel test robot <lkp@intel.com>
>Closes: https://lore.kernel.org/oe-kbuild-all/202511222115.uvHrP95A-lkp@intel.com/
>Fixes: e9f039c08cdc ("clk: microchip: core: convert from round_rate() to determine_rate()")
>Signed-off-by: Chen Changcheng <chenchangcheng@kylinos.cn>
>---
> drivers/clk/microchip/clk-core.c | 1 -
> 1 file changed, 1 deletion(-)
>
>diff --git a/drivers/clk/microchip/clk-core.c b/drivers/clk/microchip/clk-core.c
>index b34348d491f3..20f25d2db05d 100644
>--- a/drivers/clk/microchip/clk-core.c
>+++ b/drivers/clk/microchip/clk-core.c
>@@ -916,7 +916,6 @@ const struct clk_ops pic32_sclk_ops = {
> 	.set_rate	= sclk_set_rate,
> 	.recalc_rate	= sclk_get_rate,
> 	.init		= sclk_init,
>-	.determine_rate = __clk_mux_determine_rate,
> };
> 
> /* sclk with no slew and no post-divider */
>
>base-commit: cc3ee4ba57b76deefb52aee5f57a46dc07bda9f7
>prerequisite-patch-id: 6cc5a0ec0db4756cb95c5d67a3d27a57288fdaa7
>-- 
>2.25.1