* [linux-next:master 2212/12283] drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:1031:undefined reference to `__clk_get_name'
@ 2024-09-17 19:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-17 19:41 UTC (permalink / raw)
To: Cristian Ciocaltea
Cc: oe-kbuild-all, Linux Memory Management List, Vinod Koul
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4f3e012d4cfd1d9bf837870c961f462ca9f23ebe
commit: c4b09c562086f32588d962d30d0b7e93fe3e7cbb [2212/12283] phy: phy-rockchip-samsung-hdptx: Add clock provider support
config: m68k-randconfig-r064-20240801 (https://download.01.org/0day-ci/archive/20240918/202409180305.53PXymZn-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240918/202409180305.53PXymZn-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/202409180305.53PXymZn-lkp@intel.com/
All errors (new ones prefixed by >>):
m68k-linux-ld: drivers/phy/rockchip/phy-rockchip-samsung-hdptx.o: in function `rk_hdptx_phy_clk_register':
>> drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:1031:(.text+0x470): undefined reference to `__clk_get_name'
>> m68k-linux-ld: drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:1036:(.text+0x4ba): undefined reference to `devm_clk_hw_register'
>> m68k-linux-ld: drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:1040:(.text+0x4d2): undefined reference to `of_clk_hw_simple_get'
>> m68k-linux-ld: drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:1040:(.text+0x4da): undefined reference to `devm_of_clk_add_hw_provider'
vim +1031 drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
1016
1017 static int rk_hdptx_phy_clk_register(struct rk_hdptx_phy *hdptx)
1018 {
1019 struct device *dev = hdptx->dev;
1020 const char *name, *pname;
1021 struct clk *refclk;
1022 int ret, id;
1023
1024 refclk = devm_clk_get(dev, "ref");
1025 if (IS_ERR(refclk))
1026 return dev_err_probe(dev, PTR_ERR(refclk),
1027 "Failed to get ref clock\n");
1028
1029 id = of_alias_get_id(dev->of_node, "hdptxphy");
1030 name = id > 0 ? "clk_hdmiphy_pixel1" : "clk_hdmiphy_pixel0";
> 1031 pname = __clk_get_name(refclk);
1032
1033 hdptx->hw.init = CLK_HW_INIT(name, pname, &hdptx_phy_clk_ops,
1034 CLK_GET_RATE_NOCACHE);
1035
> 1036 ret = devm_clk_hw_register(dev, &hdptx->hw);
1037 if (ret)
1038 return dev_err_probe(dev, ret, "Failed to register clock\n");
1039
> 1040 ret = devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, &hdptx->hw);
1041 if (ret)
1042 return dev_err_probe(dev, ret,
1043 "Failed to register clk provider\n");
1044 return 0;
1045 }
1046
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-17 19:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-17 19:41 [linux-next:master 2212/12283] drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:1031:undefined reference to `__clk_get_name' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox