From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Geert Uytterhoeven <geert@linux-m68k.org>
Subject: drivers/media/i2c/tc358746.c:1279:(.text.tc358746_probe+0x4ac): undefined reference to `devm_clk_hw_register'
Date: Tue, 28 Apr 2026 13:27:50 +0800 [thread overview]
Message-ID: <202604281338.QFAJ2bBa-lkp@intel.com> (raw)
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
reply other threads:[~2026-04-28 5:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604281338.QFAJ2bBa-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel@0x0f.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox