tree: https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git for-leds-next head: 4ba9df04b7ac66d2d000ed7ae2d8136302d99a57 commit: 55a8a5c16eb37e7723244337af04388557f4fa2f [13/15] leds: rgb: mt6370: Add MediaTek MT6370 current sink type LED Indicator support config: riscv-randconfig-r042-20230319 (https://download.01.org/0day-ci/archive/20230319/202303191803.6bgnovZl-lkp@xxxxxxxxx/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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git/commit/?id=55a8a5c16eb37e7723244337af04388557f4fa2f git remote add lee-leds https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git git fetch --no-tags lee-leds for-leds-next git checkout 55a8a5c16eb37e7723244337af04388557f4fa2f # 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=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/leds/rgb/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Link: https://lore.kernel.org/oe-kbuild-all/202303191803.6bgnovZl-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/leds/rgb/leds-mt6370-rgb.c:889:8: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] vid = FIELD_GET(MT6370_VENDOR_ID_MASK, devinfo); ^ 1 error generated. vim +/FIELD_GET +889 drivers/leds/rgb/leds-mt6370-rgb.c 879 880 static int mt6370_check_vendor_info(struct mt6370_priv *priv) 881 { 882 unsigned int devinfo, vid; 883 int ret; 884 885 ret = regmap_read(priv->regmap, MT6370_REG_DEV_INFO, &devinfo); 886 if (ret) 887 return ret; 888 > 889 vid = FIELD_GET(MT6370_VENDOR_ID_MASK, devinfo); 890 if (vid == MT6372_VENDOR_ID || vid == MT6372C_VENDOR_ID) { 891 priv->reg_fields = mt6372_reg_fields; 892 priv->ranges = mt6372_led_ranges; 893 priv->pdata = &mt6372_pdata; 894 } else { 895 /* Common for MT6370/71 */ 896 priv->reg_fields = common_reg_fields; 897 priv->ranges = common_led_ranges; 898 priv->pdata = &common_pdata; 899 } 900 901 return 0; 902 } 903 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests