* drivers/media/i2c/tc358746.c:1279:(.text.tc358746_probe+0x4ac): undefined reference to `devm_clk_hw_register'
@ 2026-04-28 5:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-28 5:27 UTC (permalink / raw)
To: Daniel Palmer; +Cc: oe-kbuild-all, linux-kernel, Geert Uytterhoeven
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3b3bea6d4b9c162f9e555905d96b8c1da67ecd5b
commit: 4fbdd56edf1f0b3e338c90a011bbae1a677ac884 m68k: Enable dead code elimination
date: 10 months ago
config: m68k-randconfig-r062-20260428 (https://download.01.org/0day-ci/archive/20260428/202604281338.QFAJ2bBa-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260428/202604281338.QFAJ2bBa-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
| Fixes: 4fbdd56edf1f ("m68k: Enable dead code elimination")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604281338.QFAJ2bBa-lkp@intel.com/
All errors (new ones prefixed by >>):
m68k-linux-ld: drivers/media/i2c/tc358746.o: in function `tc358746_probe':
>> drivers/media/i2c/tc358746.c:1279:(.text.tc358746_probe+0x4ac): undefined reference to `devm_clk_hw_register'
>> m68k-linux-ld: drivers/media/i2c/tc358746.c:1285:(.text.tc358746_probe+0x4be): undefined reference to `of_clk_hw_simple_get'
>> m68k-linux-ld: drivers/media/i2c/tc358746.c:1285:(.text.tc358746_probe+0x4c6): undefined reference to `devm_of_clk_add_hw_provider'
vim +1279 drivers/media/i2c/tc358746.c
80a21da360516f Marco Felsch 2022-09-30 1256
80a21da360516f Marco Felsch 2022-09-30 1257 static int tc358746_setup_mclk_provider(struct tc358746 *tc358746)
80a21da360516f Marco Felsch 2022-09-30 1258 {
80a21da360516f Marco Felsch 2022-09-30 1259 struct clk_init_data mclk_initdata = { };
80a21da360516f Marco Felsch 2022-09-30 1260 struct device *dev = tc358746->sd.dev;
80a21da360516f Marco Felsch 2022-09-30 1261 const char *mclk_name;
80a21da360516f Marco Felsch 2022-09-30 1262 int err;
80a21da360516f Marco Felsch 2022-09-30 1263
80a21da360516f Marco Felsch 2022-09-30 1264 /* MCLK clk provider support is optional */
80a21da360516f Marco Felsch 2022-09-30 1265 if (!device_property_present(dev, "#clock-cells"))
80a21da360516f Marco Felsch 2022-09-30 1266 return 0;
80a21da360516f Marco Felsch 2022-09-30 1267
80a21da360516f Marco Felsch 2022-09-30 1268 /* Init to highest possibel MCLK */
80a21da360516f Marco Felsch 2022-09-30 1269 tc358746->mclk_postdiv = 512;
80a21da360516f Marco Felsch 2022-09-30 1270 tc358746->mclk_prediv = 8;
80a21da360516f Marco Felsch 2022-09-30 1271
80a21da360516f Marco Felsch 2022-09-30 1272 mclk_name = "tc358746-mclk";
80a21da360516f Marco Felsch 2022-09-30 1273 device_property_read_string(dev, "clock-output-names", &mclk_name);
80a21da360516f Marco Felsch 2022-09-30 1274
80a21da360516f Marco Felsch 2022-09-30 1275 mclk_initdata.name = mclk_name;
80a21da360516f Marco Felsch 2022-09-30 1276 mclk_initdata.ops = &tc358746_mclk_ops;
80a21da360516f Marco Felsch 2022-09-30 1277 tc358746->mclk_hw.init = &mclk_initdata;
80a21da360516f Marco Felsch 2022-09-30 1278
80a21da360516f Marco Felsch 2022-09-30 @1279 err = devm_clk_hw_register(dev, &tc358746->mclk_hw);
80a21da360516f Marco Felsch 2022-09-30 1280 if (err) {
80a21da360516f Marco Felsch 2022-09-30 1281 dev_err(dev, "Failed to register mclk provider\n");
80a21da360516f Marco Felsch 2022-09-30 1282 return err;
80a21da360516f Marco Felsch 2022-09-30 1283 }
80a21da360516f Marco Felsch 2022-09-30 1284
80a21da360516f Marco Felsch 2022-09-30 @1285 err = devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get,
80a21da360516f Marco Felsch 2022-09-30 1286 &tc358746->mclk_hw);
80a21da360516f Marco Felsch 2022-09-30 1287 if (err)
80a21da360516f Marco Felsch 2022-09-30 1288 dev_err(dev, "Failed to add mclk provider\n");
80a21da360516f Marco Felsch 2022-09-30 1289
80a21da360516f Marco Felsch 2022-09-30 1290 return err;
80a21da360516f Marco Felsch 2022-09-30 1291 }
80a21da360516f Marco Felsch 2022-09-30 1292
:::::: The code at line 1279 was first introduced by commit
:::::: 80a21da360516fa602f3a50eb9792f9dfbfb5fdb media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver
:::::: TO: Marco Felsch <m.felsch@pengutronix.de>
:::::: CC: Sakari Ailus <sakari.ailus@linux.intel.com>
--
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:[~2026-04-28 5:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28 5:27 drivers/media/i2c/tc358746.c:1279:(.text.tc358746_probe+0x4ac): undefined reference to `devm_clk_hw_register' 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