* [linux-next:master 11663/12731] ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined!
@ 2023-06-28 12:52 kernel test robot
2023-06-28 15:47 ` Biju Das
0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2023-06-28 12:52 UTC (permalink / raw)
To: Biju Das; +Cc: oe-kbuild-all, Linux Memory Management List, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5c875096d59010cee4e00da1f9c7bdb07a025dc2
commit: 7bce16630837c705f72e8fd53a11ae8c236236f4 [11663/12731] regulator: Add Renesas PMIC RAA215300 driver
config: m68k-randconfig-r054-20230628 (https://download.01.org/0day-ci/archive/20230628/202306282012.sPQAuAN7-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230628/202306282012.sPQAuAN7-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306282012.sPQAuAN7-lkp@intel.com/
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined!
>> ERROR: modpost: "clk_register_fixed_rate" [drivers/regulator/raa215300.ko] undefined!
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: [linux-next:master 11663/12731] ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! 2023-06-28 12:52 [linux-next:master 11663/12731] ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! kernel test robot @ 2023-06-28 15:47 ` Biju Das 2023-06-28 16:56 ` Mark Brown 2023-06-30 4:40 ` Stephen Boyd 0 siblings, 2 replies; 5+ messages in thread From: Biju Das @ 2023-06-28 15:47 UTC (permalink / raw) To: kernel test robot, Mark Brown, Geert Uytterhoeven Cc: oe-kbuild-all, Linux Memory Management List, linux-clk, linux-kernel Hi All, I have come up with two solutions for fixing this issue. Please suggest which solution, I should submit. First solution allows to build the driver for m68k architecture, whereas the second solution skips it. Solution 1: Add static inline functions in clk-provider.h --------------------------------------------------------- diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 28ff6f1a6ada..425a31c2816c 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -365,9 +365,6 @@ struct clk_hw *__clk_hw_register_fixed_rate(struct device *dev, const struct clk_parent_data *parent_data, unsigned long flags, unsigned long fixed_rate, unsigned long fixed_accuracy, unsigned long clk_fixed_flags, bool devm); -struct clk *clk_register_fixed_rate(struct device *dev, const char *name, - const char *parent_name, unsigned long flags, - unsigned long fixed_rate); /** * clk_hw_register_fixed_rate - register fixed-rate clock with the clock * framework @@ -481,7 +478,6 @@ struct clk *clk_register_fixed_rate(struct device *dev, const char *name, (parent_data), (flags), (fixed_rate), 0, \ CLK_FIXED_RATE_PARENT_ACCURACY, false) -void clk_unregister_fixed_rate(struct clk *clk); void clk_hw_unregister_fixed_rate(struct clk_hw *hw); void of_fixed_clk_setup(struct device_node *np); @@ -1297,11 +1293,22 @@ const char *__clk_get_name(const struct clk *clk); const char *clk_hw_get_name(const struct clk_hw *hw); #ifdef CONFIG_COMMON_CLK struct clk_hw *__clk_get_hw(struct clk *clk); +struct clk *clk_register_fixed_rate(struct device *dev, const char *name, + const char *parent_name, unsigned long flags, + unsigned long fixed_rate); +void clk_unregister_fixed_rate(struct clk *clk); #else static inline struct clk_hw *__clk_get_hw(struct clk *clk) { return (struct clk_hw *)clk; } +static inline struct clk *clk_register_fixed_rate(struct device *dev, const char *name, + const char *parent_name, unsigned long flags, + unsigned long fixed_rate) +{ + return ERR_PTR(-ENOENT); +} +static inline void clk_unregister_fixed_rate(struct clk *clk) {} #endif struct clk *clk_hw_get_clk(struct clk_hw *hw, const char *con_id); Solution 2: Add dependency to COMMON_CLK -------------------------------------- config REGULATOR_RAA215300 tristate "Renesas RAA215300 driver" select REGMAP_I2C + depends on COMMON_CLK depends on I2C help Support for the Renesas RAA215300 PMIC. Cheers, Biju > -----Original Message----- > From: kernel test robot <lkp@intel.com> > Sent: Wednesday, June 28, 2023 1:53 PM > To: Biju Das <biju.das.jz@bp.renesas.com> > Cc: oe-kbuild-all@lists.linux.dev; Linux Memory Management List <linux- > mm@kvack.org>; Mark Brown <broonie@kernel.org> > Subject: [linux-next:master 11663/12731] ERROR: modpost: > "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! > > tree: > > > If you fix the issue in a separate patch/commit (i.e. not just a new > version of the same patch/commit), kindly add following tags > | Reported-by: kernel test robot <lkp@intel.com> > | Closes: > > All errors (new ones prefixed by >>, old ones prefixed by <<): > > >> ERROR: modpost: "clk_unregister_fixed_rate" > [drivers/regulator/raa215300.ko] undefined! > >> ERROR: modpost: "clk_register_fixed_rate" > [drivers/regulator/raa215300.ko] undefined! > > -- > 0-DAY CI Kernel Test Service ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-next:master 11663/12731] ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! 2023-06-28 15:47 ` Biju Das @ 2023-06-28 16:56 ` Mark Brown 2023-06-30 4:40 ` Stephen Boyd 1 sibling, 0 replies; 5+ messages in thread From: Mark Brown @ 2023-06-28 16:56 UTC (permalink / raw) To: Biju Das Cc: kernel test robot, Geert Uytterhoeven, oe-kbuild-all, Linux Memory Management List, linux-clk, linux-kernel [-- Attachment #1: Type: text/plain, Size: 328 bytes --] On Wed, Jun 28, 2023 at 03:47:19PM +0000, Biju Das wrote: > Hi All, > > I have come up with two solutions for fixing this issue. > > Please suggest which solution, I should submit. > > First solution allows to build the driver for m68k architecture, > whereas the second solution skips it. Either is fine for me. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [linux-next:master 11663/12731] ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! 2023-06-28 15:47 ` Biju Das 2023-06-28 16:56 ` Mark Brown @ 2023-06-30 4:40 ` Stephen Boyd 2023-06-30 6:55 ` Biju Das 1 sibling, 1 reply; 5+ messages in thread From: Stephen Boyd @ 2023-06-30 4:40 UTC (permalink / raw) To: Biju Das, Geert Uytterhoeven, Mark Brown, kernel test robot; +Cc: oe-kbuild-all Quoting Biju Das (2023-06-28 08:47:19) > Hi All, > > I have come up with two solutions for fixing this issue. > > Please suggest which solution, I should submit. > > First solution allows to build the driver for m68k architecture, > whereas the second solution skips it. I'd opt to depend on COMMON_CLK config. ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [linux-next:master 11663/12731] ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! 2023-06-30 4:40 ` Stephen Boyd @ 2023-06-30 6:55 ` Biju Das 0 siblings, 0 replies; 5+ messages in thread From: Biju Das @ 2023-06-30 6:55 UTC (permalink / raw) To: Stephen Boyd, Geert Uytterhoeven, Mark Brown, kernel test robot Cc: oe-kbuild-all@ Hi Stephen, Thanks for the feedback. > -----Original Message----- > From: Stephen Boyd <sboyd@kernel.org> > Sent: Friday, June 30, 2023 5:41 AM > To: Biju Das <biju.das.jz@bp.renesas.com>; Geert Uytterhoeven > <geert@linux-m68k.org>; Mark Brown <broonie@kernel.org>; kernel test > robot <lkp@intel.com> > Cc: oe-kbuild-all@ <lists.linux.dev oe-kbuild-all@lists.linux.dev>; > Linux Memory Management List <linux-mm@kvack.org>; linux-clk@ > <vger.kernel.org linux-clk@vger.kernel.org>; linux-kernel@ > <vger.kernel.org linux-kernel@vger.kernel.org> > Subject: RE: [linux-next:master 11663/12731] ERROR: modpost: > "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! > > Quoting Biju Das (2023-06-28 08:47:19) > > Hi All, > > > > I have come up with two solutions for fixing this issue. > > > > Please suggest which solution, I should submit. > > > > First solution allows to build the driver for m68k architecture, > > whereas the second solution skips it. > > I'd opt to depend on COMMON_CLK config. Yes, it is mainlined like above [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20230630&id=e9bd04e52d649c3cfd713b594c5db35cab03c42b Cheers, Biju ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-30 6:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-06-28 12:52 [linux-next:master 11663/12731] ERROR: modpost: "clk_unregister_fixed_rate" [drivers/regulator/raa215300.ko] undefined! kernel test robot 2023-06-28 15:47 ` Biju Das 2023-06-28 16:56 ` Mark Brown 2023-06-30 4:40 ` Stephen Boyd 2023-06-30 6:55 ` Biju Das
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox