[krzk-github:n/qcom-ufs-opp-v2 19/20] drivers/opp/core.c:898:26: error: no member named 'clk' in 'struct opp_table'; did you mean 'clks'?

From: kernel test robot
Date: Thu Apr 07 2022 - 07:58:49 EST


tree: https://github.com/krzk/linux n/qcom-ufs-opp-v2
head: e10a6c68219eb9b5d79c2f447d8df698c38e5853
commit: ea240d6e8f1e8a618de2d76ff2e89a1cc3d39971 [19/20] pm wip
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220407/202204071939.MyXGuJA4-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6b306233f78876a1d197ed6e1f05785505de7c63)
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://github.com/krzk/linux/commit/ea240d6e8f1e8a618de2d76ff2e89a1cc3d39971
git remote add krzk-github https://github.com/krzk/linux
git fetch --no-tags krzk-github n/qcom-ufs-opp-v2
git checkout ea240d6e8f1e8a618de2d76ff2e89a1cc3d39971
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/opp/core.c:898:26: error: no member named 'clk' in 'struct opp_table'; did you mean 'clks'?
data->clk = (opp_table->clk ? opp_table->clks[0] : NULL);
^~~
clks
drivers/opp/opp.h:212:15: note: 'clks' declared here
struct clk **clks;
^
1 error generated.


vim +898 drivers/opp/core.c

875
876 static int _set_opp_custom(const struct opp_table *opp_table,
877 struct device *dev, struct dev_pm_opp *opp,
878 unsigned long freq)
879 {
880 struct dev_pm_set_opp_data *data = opp_table->set_opp_data;
881 struct dev_pm_opp *old_opp = opp_table->current_opp;
882 int size;
883
884 /*
885 * We support this only if dev_pm_opp_set_regulators() was called
886 * earlier.
887 */
888 if (opp_table->sod_supplies) {
889 size = sizeof(*old_opp->supplies) * opp_table->regulator_count;
890 memcpy(data->old_opp.supplies, old_opp->supplies, size);
891 memcpy(data->new_opp.supplies, opp->supplies, size);
892 data->regulator_count = opp_table->regulator_count;
893 } else {
894 data->regulator_count = 0;
895 }
896
897 data->regulators = opp_table->regulators;
> 898 data->clk = (opp_table->clk ? opp_table->clks[0] : NULL);
899 data->dev = dev;
900 data->old_opp.rate = old_opp->rate;
901 data->new_opp.rate = freq;
902
903 return opp_table->set_opp(data);
904 }
905

--
0-DAY CI Kernel Test Service
https://01.org/lkp