* [krzk-github:n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt 384/633] drivers/phy/qualcomm/phy-qcom-snps-eusb2.c:172:7: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations
@ 2023-03-02 18:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-02 18:45 UTC (permalink / raw)
To: Abel Vesa; +Cc: llvm, oe-kbuild-all
Hi Abel,
First bad commit (maybe != root cause):
tree: https://github.com/krzk/linux n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt
head: 06abd4f3cf4c58289447483d11d566d20fd3f3db
commit: defa91be85256bdf900fa2eb9709f74744a8fddf [384/633] Merge branch 'topic/sm8550/upstream/usb' into tracking-qcomlt-sm8550-drivers
config: powerpc-buildonly-randconfig-r002-20230302 (https://download.01.org/0day-ci/archive/20230303/202303030257.KkvlYwFb-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/krzk/linux/commit/defa91be85256bdf900fa2eb9709f74744a8fddf
git remote add krzk-github https://github.com/krzk/linux
git fetch --no-tags krzk-github n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt
git checkout defa91be85256bdf900fa2eb9709f74744a8fddf
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/phy/qualcomm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303030257.KkvlYwFb-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/phy/qualcomm/phy-qcom-snps-eusb2.c:172:7: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
FIELD_PREP(PHY_CFG_TX_PREEMP_TUNE_MASK, 0));
^
drivers/phy/qualcomm/phy-qcom-snps-eusb2.c:203:8: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
FIELD_PREP(FSEL_MASK, FSEL_19_2_MHZ_VAL));
^
drivers/phy/qualcomm/phy-qcom-snps-eusb2.c:317:7: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
FIELD_PREP(PHY_CFG_PLL_CPBIAS_CNTRL_MASK, 0x1));
^
3 errors generated.
vim +/FIELD_PREP +172 drivers/phy/qualcomm/phy-qcom-snps-eusb2.c
e237c1557077309 Abel Vesa 2022-10-25 166
e237c1557077309 Abel Vesa 2022-10-25 167 static void qcom_eusb2_default_parameters(struct qcom_snps_eusb2_hsphy *phy)
e237c1557077309 Abel Vesa 2022-10-25 168 {
e237c1557077309 Abel Vesa 2022-10-25 169 /* default parameters: tx pre-emphasis */
e237c1557077309 Abel Vesa 2022-10-25 170 qcom_snps_eusb2_hsphy_write_mask(phy->base, USB_PHY_CFG_CTRL_9,
e237c1557077309 Abel Vesa 2022-10-25 171 PHY_CFG_TX_PREEMP_TUNE_MASK,
e237c1557077309 Abel Vesa 2022-10-25 @172 FIELD_PREP(PHY_CFG_TX_PREEMP_TUNE_MASK, 0));
e237c1557077309 Abel Vesa 2022-10-25 173
e237c1557077309 Abel Vesa 2022-10-25 174 /* tx rise/fall time */
e237c1557077309 Abel Vesa 2022-10-25 175 qcom_snps_eusb2_hsphy_write_mask(phy->base, USB_PHY_CFG_CTRL_9,
e237c1557077309 Abel Vesa 2022-10-25 176 PHY_CFG_TX_RISE_TUNE_MASK,
e237c1557077309 Abel Vesa 2022-10-25 177 FIELD_PREP(PHY_CFG_TX_RISE_TUNE_MASK, 0x2));
e237c1557077309 Abel Vesa 2022-10-25 178
e237c1557077309 Abel Vesa 2022-10-25 179 /* source impedance adjustment */
e237c1557077309 Abel Vesa 2022-10-25 180 qcom_snps_eusb2_hsphy_write_mask(phy->base, USB_PHY_CFG_CTRL_9,
e237c1557077309 Abel Vesa 2022-10-25 181 PHY_CFG_TX_RES_TUNE_MASK,
e237c1557077309 Abel Vesa 2022-10-25 182 FIELD_PREP(PHY_CFG_TX_RES_TUNE_MASK, 0x1));
e237c1557077309 Abel Vesa 2022-10-25 183
e237c1557077309 Abel Vesa 2022-10-25 184 /* dc voltage level adjustement */
e237c1557077309 Abel Vesa 2022-10-25 185 qcom_snps_eusb2_hsphy_write_mask(phy->base, USB_PHY_CFG_CTRL_8,
e237c1557077309 Abel Vesa 2022-10-25 186 PHY_CFG_TX_HS_VREF_TUNE_MASK,
e237c1557077309 Abel Vesa 2022-10-25 187 FIELD_PREP(PHY_CFG_TX_HS_VREF_TUNE_MASK, 0x3));
e237c1557077309 Abel Vesa 2022-10-25 188
e237c1557077309 Abel Vesa 2022-10-25 189 /* transmitter HS crossover adjustement */
e237c1557077309 Abel Vesa 2022-10-25 190 qcom_snps_eusb2_hsphy_write_mask(phy->base, USB_PHY_CFG_CTRL_8,
e237c1557077309 Abel Vesa 2022-10-25 191 PHY_CFG_TX_HS_XV_TUNE_MASK,
e237c1557077309 Abel Vesa 2022-10-25 192 FIELD_PREP(PHY_CFG_TX_HS_XV_TUNE_MASK, 0x0));
e237c1557077309 Abel Vesa 2022-10-25 193 }
e237c1557077309 Abel Vesa 2022-10-25 194
:::::: The code at line 172 was first introduced by commit
:::::: e237c15570773096c4d5e4a98b3390fc0f1e8d6b phy: qcom: Add QCOM SNPS eUSB2 driver
:::::: TO: Abel Vesa <abel.vesa@linaro.org>
:::::: CC: Abel Vesa <abel.vesa@linaro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-02 18:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-02 18:45 [krzk-github:n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt 384/633] drivers/phy/qualcomm/phy-qcom-snps-eusb2.c:172:7: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.