[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208030144.XL7rBrWY-lkp@intel.com>
Date: Wed, 3 Aug 2022 01:07:06 +0800
From: kernel test robot <lkp@...el.com>
To: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Steev Klimaszewski <steev@...i.org>,
Johan Hovold <johan+linaro@...nel.org>
Subject: [steev:lenovo-x13s-5.19.0 73/150]
drivers/clk/qcom/clk-regmap-phy-mux.c:30:15: error: implicit declaration of
function 'FIELD_GET'
tree: https://github.com/steev/linux lenovo-x13s-5.19.0
head: 3f70e98ff07f044b171ef59e1bb91545e1f65818
commit: a55a3f8acea99d052a3ce9e93ca8404fb8f4957b [73/150] clk: qcom: regmap: add PHY clock source implementation
config: riscv-randconfig-r042-20220801 (https://download.01.org/0day-ci/archive/20220803/202208030144.XL7rBrWY-lkp@intel.com/config)
compiler: riscv64-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/a55a3f8acea99d052a3ce9e93ca8404fb8f4957b
git remote add steev https://github.com/steev/linux
git fetch --no-tags steev lenovo-x13s-5.19.0
git checkout a55a3f8acea99d052a3ce9e93ca8404fb8f4957b
# 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=riscv SHELL=/bin/bash drivers/clk/qcom/
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/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' [-Werror=implicit-function-declaration]
30 | val = FIELD_GET(PHY_MUX_MASK, val);
| ^~~~~~~~~
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 +/FIELD_GET +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
Powered by blists - more mailing lists