[phy:next 37/37] drivers/phy/freescale/phy-fsl-imx8m-pcie.c:41:41: error: implicit declaration of function 'FIELD_PREP'

From: kernel test robot
Date: Tue Dec 14 2021 - 18:04:35 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git next
head: 1aa97b002258a190d7790a1a5c0c27829f82e569
commit: 1aa97b002258a190d7790a1a5c0c27829f82e569 [37/37] phy: freescale: pcie: Initialize the imx8 pcie standalone phy driver
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20211215/202112150757.4yrvwmKK-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git/commit/?id=1aa97b002258a190d7790a1a5c0c27829f82e569
git remote add phy https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git
git fetch --no-tags phy next
git checkout 1aa97b002258a190d7790a1a5c0c27829f82e569
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash

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/phy/freescale/phy-fsl-imx8m-pcie.c: In function 'imx8_pcie_phy_init':
>> drivers/phy/freescale/phy-fsl-imx8m-pcie.c:41:41: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
41 | #define IMX8MM_GPR_PCIE_REF_CLK_EXT FIELD_PREP(IMX8MM_GPR_PCIE_REF_CLK_SEL, 0x2)
| ^~~~~~~~~~
drivers/phy/freescale/phy-fsl-imx8m-pcie.c:85:28: note: in expansion of macro 'IMX8MM_GPR_PCIE_REF_CLK_EXT'
85 | IMX8MM_GPR_PCIE_REF_CLK_EXT :
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors


vim +/FIELD_PREP +41 drivers/phy/freescale/phy-fsl-imx8m-pcie.c

38
39 #define IMX8MM_GPR_PCIE_REF_CLK_SEL GENMASK(25, 24)
40 #define IMX8MM_GPR_PCIE_REF_CLK_PLL FIELD_PREP(IMX8MM_GPR_PCIE_REF_CLK_SEL, 0x3)
> 41 #define IMX8MM_GPR_PCIE_REF_CLK_EXT FIELD_PREP(IMX8MM_GPR_PCIE_REF_CLK_SEL, 0x2)
42 #define IMX8MM_GPR_PCIE_AUX_EN BIT(19)
43 #define IMX8MM_GPR_PCIE_CMN_RST BIT(18)
44 #define IMX8MM_GPR_PCIE_POWER_OFF BIT(17)
45 #define IMX8MM_GPR_PCIE_SSC_EN BIT(16)
46 #define IMX8MM_GPR_PCIE_AUX_EN_OVERRIDE BIT(9)
47

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx