tree: https://github.com/steev/linux c630-6.0.0-rc6 head: 9a45392dd66cc0ecc92257da15460d26f1b8a337 commit: a9f55bdce15d8608622ab8466583bd92db847898 [56/156] power: supply: Add Lenovo Yoga C630 EC driver config: powerpc-allyesconfig compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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/steev/linux/commit/a9f55bdce15d8608622ab8466583bd92db847898 git remote add steev https://github.com/steev/linux git fetch --no-tags steev c630-6.0.0-rc6 git checkout a9f55bdce15d8608622ab8466583bd92db847898 # 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 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/power/supply/yoga-c630-ec.c:224:24: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ec->adapter_online = FIELD_GET(LENOVO_EC_ADPT_PRESENT, val); ^ drivers/power/supply/yoga-c630-ec.c:390:6: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (FIELD_GET(LENOVO_EC_USB_EVENT_MUX, event)) ^ 2 errors generated. vim +/FIELD_GET +224 drivers/power/supply/yoga-c630-ec.c 215 216 static int yoga_c630_ec_update_adapter_status(struct yoga_c630_ec *ec) 217 { 218 int val; 219 220 mutex_lock(&ec->lock); 221 222 val = yoga_c630_ec_read8(ec, LENOVO_EC_ADPT_STATUS); 223 if (val > 0) > 224 ec->adapter_online = FIELD_GET(LENOVO_EC_ADPT_PRESENT, val); 225 226 mutex_unlock(&ec->lock); 227 228 return val; 229 } 230 -- 0-DAY CI Kernel Test Service https://01.org/lkp