lkml.org 
[lkml]   [2022]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[steev:lenovo-x13s-5.19-rc8+suspend 73/134] drivers/clk/qcom/clk-regmap-phy-mux.c:30:15: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'?
tree:   https://github.com/steev/linux lenovo-x13s-5.19-rc8+suspend
head: 5455957b06f6a7fabc7eedae4add8e574533bf0d
commit: c5cd165b06389db2c6888ee46e58d9f761d5b64e [73/134] clk: qcom: regmap: add PHY clock source implementation
config: microblaze-randconfig-r002-20220731 (https://download.01.org/0day-ci/archive/20220731/202207310844.E9OItlb7-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.1.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://github.com/steev/linux/commit/c5cd165b06389db2c6888ee46e58d9f761d5b64e
git remote add steev https://github.com/steev/linux
git fetch --no-tags steev lenovo-x13s-5.19-rc8+suspend
git checkout c5cd165b06389db2c6888ee46e58d9f761d5b64e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=microblaze SHELL=/bin/bash drivers/clk/qcom/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

drivers/clk/qcom/clk-regmap-phy-mux.c: In function 'phy_mux_is_enabled':
>> drivers/clk/qcom/clk-regmap-phy-mux.c:30:15: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'? [-Werror=implicit-function-declaration]
30 | val = FIELD_GET(PHY_MUX_MASK, val);
| ^~~~~~~~~
| FOLL_GET
drivers/clk/qcom/clk-regmap-phy-mux.c: In function 'phy_mux_enable':
>> drivers/clk/qcom/clk-regmap-phy-mux.c:44:35: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
44 | FIELD_PREP(PHY_MUX_MASK, PHY_MUX_PHY_SRC));
| ^~~~~~~~~~
cc1: some warnings being treated as errors


vim +30 drivers/clk/qcom/clk-regmap-phy-mux.c

22
23 static int phy_mux_is_enabled(struct clk_hw *hw)
24 {
25 struct clk_regmap *clkr = to_clk_regmap(hw);
26 struct clk_regmap_phy_mux *phy_mux = to_clk_regmap_phy_mux(clkr);
27 unsigned int val;
28
29 regmap_read(clkr->regmap, phy_mux->reg, &val);
> 30 val = FIELD_GET(PHY_MUX_MASK, val);
31
32 WARN_ON(val != PHY_MUX_PHY_SRC && val != PHY_MUX_REF_SRC);
33
34 return val == PHY_MUX_PHY_SRC;
35 }
36
37 static int phy_mux_enable(struct clk_hw *hw)
38 {
39 struct clk_regmap *clkr = to_clk_regmap(hw);
40 struct clk_regmap_phy_mux *phy_mux = to_clk_regmap_phy_mux(clkr);
41
42 return regmap_update_bits(clkr->regmap, phy_mux->reg,
43 PHY_MUX_MASK,
> 44 FIELD_PREP(PHY_MUX_MASK, PHY_MUX_PHY_SRC));
45 }
46

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

\
 
 \ /
  Last update: 2022-07-31 02:23    [W:0.079 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site