mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Steev Klimaszewski <steev@kali.org>,
	Johan Hovold <johan+linaro@kernel.org>
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'?
Date: Sun, 31 Jul 2022 08:22:45 +0800	[thread overview]
Message-ID: <202207310844.E9OItlb7-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-07-31  0:22 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=202207310844.E9OItlb7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=johan+linaro@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steev@kali.org \
    /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

Powered by JetHome