Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [krzk-github:n/sm8750-audio-part-3 6/21] drivers/phy/qualcomm/phy-qcom-m31-eusb2.c:210:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations
@ 2025-05-23 14:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-23 14:12 UTC (permalink / raw)
  To: Wesley Cheng
  Cc: llvm, oe-kbuild-all, Krzysztof Kozlowski, Dmitry Baryshkov,
	Melody Olvera

tree:   https://github.com/krzk/linux n/sm8750-audio-part-3
head:   adac035ce9cf16b4bf5bcad64478178ae722e65e
commit: 053002707bd34cee1887aa5952f4a8e573eb419b [6/21] phy: qcom: Add M31 based eUSB2 PHY driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250523/202505232228.17gTDAsa-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250523/202505232228.17gTDAsa-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505232228.17gTDAsa-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/phy/qualcomm/phy-qcom-m31-eusb2.c:210:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     210 |                                      FIELD_PREP(FSEL, data->fsel));
         |                                      ^
   1 error generated.


vim +/FIELD_PREP +210 drivers/phy/qualcomm/phy-qcom-m31-eusb2.c

   177	
   178	static int m31eusb2_phy_init(struct phy *uphy)
   179	{
   180		struct m31eusb2_phy *phy = phy_get_drvdata(uphy);
   181		const struct m31_eusb2_priv_data *data = phy->data;
   182		int ret;
   183	
   184		ret = regulator_bulk_enable(M31_EUSB_NUM_VREGS, phy->vregs);
   185		if (ret) {
   186			dev_err(&uphy->dev, "failed to enable regulator, %d\n", ret);
   187			return ret;
   188		}
   189	
   190		ret = phy_init(phy->repeater);
   191		if (ret) {
   192			dev_err(&uphy->dev, "repeater init failed. %d\n", ret);
   193			goto disable_vreg;
   194		}
   195	
   196		ret = clk_prepare_enable(phy->clk);
   197		if (ret) {
   198			dev_err(&uphy->dev, "failed to enable cfg ahb clock, %d\n", ret);
   199			goto disable_repeater;
   200		}
   201	
   202		/* Perform phy reset */
   203		reset_control_assert(phy->reset);
   204		udelay(5);
   205		reset_control_deassert(phy->reset);
   206	
   207		m31eusb2_phy_write_sequence(phy, data->setup_seq, data->setup_seq_nregs);
   208		m31eusb2_phy_write_readback(phy->base,
   209					     USB_PHY_HS_PHY_CTRL_COMMON0, FSEL,
 > 210					     FIELD_PREP(FSEL, data->fsel));
   211		m31eusb2_phy_write_sequence(phy, data->override_seq, data->override_seq_nregs);
   212		m31eusb2_phy_write_sequence(phy, data->reset_seq, data->reset_seq_nregs);
   213	
   214		return 0;
   215	
   216	disable_repeater:
   217		phy_exit(phy->repeater);
   218	disable_vreg:
   219		regulator_bulk_disable(M31_EUSB_NUM_VREGS, phy->vregs);
   220	
   221		return 0;
   222	}
   223	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-23 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23 14:12 [krzk-github:n/sm8750-audio-part-3 6/21] drivers/phy/qualcomm/phy-qcom-m31-eusb2.c:210:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox