[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205260337.QJEzLw2I-lkp@intel.com>
Date: Thu, 26 May 2022 03:13:47 +0800
From: kernel test robot <lkp@...el.com>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [vireshk-pm:opp/config 26/33]
drivers/memory/tegra/tegra124-emc.c:1401:34: error: 'hw_versions'
undeclared; did you mean 'hw_version'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/config
head: d730dc101c586defb49eeafd8eea9b7bb0baa01b
commit: c2dbafb4076bf639babb279975e034a050d9b72a [26/33] media: tegra: Migrate to dev_pm_opp_set_config()
config: arc-randconfig-r034-20220524 (https://download.01.org/0day-ci/archive/20220526/202205260337.QJEzLw2I-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git/commit/?id=c2dbafb4076bf639babb279975e034a050d9b72a
git remote add vireshk-pm https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
git fetch --no-tags vireshk-pm opp/config
git checkout c2dbafb4076bf639babb279975e034a050d9b72a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/memory/tegra/tegra124-emc.c: In function 'tegra_emc_opp_table_init':
>> drivers/memory/tegra/tegra124-emc.c:1401:34: error: 'hw_versions' undeclared (first use in this function); did you mean 'hw_version'?
1401 | .supported_hw = &hw_versions,
| ^~~~~~~~~~~
| hw_version
drivers/memory/tegra/tegra124-emc.c:1401:34: note: each undeclared identifier is reported only once for each function it appears in
vim +1401 drivers/memory/tegra/tegra124-emc.c
1394
1395 static int tegra_emc_opp_table_init(struct tegra_emc *emc)
1396 {
1397 u32 hw_version = BIT(tegra_sku_info.soc_speedo_id);
1398 struct opp_table *opp_table;
1399 int err;
1400 struct dev_pm_opp_config config = {
> 1401 .supported_hw = &hw_versions,
1402 .supported_hw_count = 1,
1403 };
1404
1405 opp_table = dev_pm_opp_set_config(emc->dev, &config);
1406 err = PTR_ERR_OR_ZERO(opp_table);
1407 if (err) {
1408 dev_err(emc->dev, "failed to set OPP config: %d\n", err);
1409 return err;
1410 }
1411
1412 err = dev_pm_opp_of_add_table(emc->dev);
1413 if (err) {
1414 if (err == -ENODEV)
1415 dev_err(emc->dev, "OPP table not found, please update your device tree\n");
1416 else
1417 dev_err(emc->dev, "failed to add OPP table: %d\n", err);
1418
1419 goto put_hw_table;
1420 }
1421
1422 dev_info_once(emc->dev, "OPP HW ver. 0x%x, current clock rate %lu MHz\n",
1423 hw_version, clk_get_rate(emc->clk) / 1000000);
1424
1425 /* first dummy rate-set initializes voltage state */
1426 err = dev_pm_opp_set_rate(emc->dev, clk_get_rate(emc->clk));
1427 if (err) {
1428 dev_err(emc->dev, "failed to initialize OPP clock: %d\n", err);
1429 goto remove_table;
1430 }
1431
1432 return 0;
1433
1434 remove_table:
1435 dev_pm_opp_of_remove_table(emc->dev);
1436 put_hw_table:
1437 dev_pm_opp_clear_config(opp_table);
1438
1439 return err;
1440 }
1441
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists