Messages in this thread | | | Date | Tue, 21 Dec 2021 13:37:57 +0800 | From | kernel test robot <> | Subject | [asahilinux:asahi-with-new-nvme 12/34] sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP' |
| |
tree: https://github.com/AsahiLinux/linux asahi-with-new-nvme head: 675e4ce8d8355827d6ee1f2fadff9fd9598348c7 commit: 4ca8fc34261576f2b4c9908ae273d7871d30e198 [12/34] ASoC: apple-mca: Add platform driver for Apple SoCs config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20211221/202112211335.csVK7tOM-lkp@intel.com/config) compiler: sh4-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://github.com/AsahiLinux/linux/commit/4ca8fc34261576f2b4c9908ae273d7871d30e198 git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux asahi-with-new-nvme git checkout 4ca8fc34261576f2b4c9908ae273d7871d30e198 # 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=sh SHELL=/bin/bash sound/soc/apple/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
sound/soc/apple/mca.c: In function 'mca_configure_serdes': >> sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration] 210 | serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1); | ^~~~~~~~~~ sound/soc/apple/mca.c: In function 'mca_set_runtime_hwparams': sound/soc/apple/mca.c:528:37: warning: unused variable 'rtd' [-Wunused-variable] 528 | struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); | ^~~ sound/soc/apple/mca.c: At top level: sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans' [-Wmissing-prototypes] 649 | void apple_mca_release_dma_chans(struct mca_data *mca) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/apple/mca.c:664:6: warning: no previous prototype for 'apple_mca_put_clks' [-Wmissing-prototypes] 664 | void apple_mca_put_clks(struct mca_data *mca) | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +/FIELD_PREP +210 sound/soc/apple/mca.c
204 205 static int mca_configure_serdes(struct mca_data *mca, int cluster, int serdes_unit, 206 unsigned int mask, int slots, int slot_width) 207 { 208 u32 serdes_conf; 209 > 210 serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1); 211 212 switch (slot_width) { 213 case 16: 214 serdes_conf |= SERDES_CONF_WIDTH_16BIT; 215 break; 216 case 20: 217 serdes_conf |= SERDES_CONF_WIDTH_20BIT; 218 break; 219 case 24: 220 serdes_conf |= SERDES_CONF_WIDTH_24BIT; 221 break; 222 case 32: 223 serdes_conf |= SERDES_CONF_WIDTH_32BIT; 224 break; 225 default: 226 goto err; 227 } 228 229 mca_modify(mca, cluster, 230 serdes_unit + REG_SERDES_CONF, 231 SERDES_CONF_WIDTH_MASK | SERDES_CONF_NCHANS, serdes_conf); 232 mca_poke(mca, cluster, 233 serdes_unit + REG_SERDES_CHANMASK, 234 ~((u32) mask)); 235 236 return 0; 237 238 err: 239 dev_err(mca->dev, "unsupported SERDES configuration requested (mask=0x%x slots=%d slot_width=%d)\n", 240 mask, slots, slot_width); 241 return -EINVAL; 242 } 243
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |