Re: [PATCH 10/10] ASoC: rockchip: spdif: Convert to FIELD_PREP
From: kernel test robot <hidden>
Date: 2026-01-28 03:55:13
Also in:
linux-rockchip, linux-sound, lkml, oe-kbuild-all
Hi Sebastian, kernel test robot noticed the following build errors: [auto build test ERROR on 63804fed149a6750ffd28610c5c1c98cce6bd377] url: https://github.com/intel-lab-lkp/linux/commits/Sebastian-Reichel/ASoC-rockchip-spdif-Use-device_get_match_data/20260128-001701 base: 63804fed149a6750ffd28610c5c1c98cce6bd377 patch link: https://lore.kernel.org/r/20260127-rockchip-spdif-cleanup-and-bsp-sync-v1-10-a7c547072bbb%40collabora.com patch subject: [PATCH 10/10] ASoC: rockchip: spdif: Convert to FIELD_PREP config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260128/202601281116.z12yhNfr-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260128/202601281116.z12yhNfr-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 [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202601281116.z12yhNfr-lkp@intel.com/ (local) All errors (new ones prefixed by >>): In file included from sound/soc/rockchip/rockchip_spdif.c:22: sound/soc/rockchip/rockchip_spdif.c: In function 'rk_spdif_hw_params':
quoted
sound/soc/rockchip/rockchip_spdif.h:33:41: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
33 | #define SPDIF_CFGR_HALFWORD_ENABLE FIELD_PREP(SPDIF_CFGR_HALFWORD_MASK, 1)
| ^~~~~~~~~~
sound/soc/rockchip/rockchip_spdif.c:109:28: note: in expansion of macro 'SPDIF_CFGR_HALFWORD_ENABLE'
109 | unsigned int val = SPDIF_CFGR_HALFWORD_ENABLE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/FIELD_PREP +33 sound/soc/rockchip/rockchip_spdif.h
30
31 #define SPDIF_CFGR_HALFWORD_MASK BIT(2)
32 #define SPDIF_CFGR_HALFWORD_DISABLE FIELD_PREP(SPDIF_CFGR_HALFWORD_MASK, 0)
> 33 #define SPDIF_CFGR_HALFWORD_ENABLE FIELD_PREP(SPDIF_CFGR_HALFWORD_MASK, 1)
34
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki