Hi Atharva, kernel test robot noticed the following build errors: [auto build test ERROR on groeck-staging/hwmon-next] [also build test ERROR on linus/master v6.13-rc7 next-20250113] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Atharva-Tiwari/hwmon-Add-T2-Mac-fan-control-support-in-applesmc-driver/20250113-164741 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next patch link: https://lore.kernel.org/r/20250113084503.228037-1-evepolonium%40gmail.com patch subject: [PATCH v3] hwmon: Add T2 Mac fan control support in applesmc driver config: i386-buildonly-randconfig-002-20250114 (https://download.01.org/0day-ci/archive/20250114/202501140359.tA17RgoT-lkp@xxxxxxxxx/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250114/202501140359.tA17RgoT-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202501140359.tA17RgoT-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/hwmon/applesmc.c:517:12: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 517 | u8 sign = FIELD_GET(BIT(31), d); | ^ >> drivers/hwmon/applesmc.c:536:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 536 | return FIELD_PREP(BIT_MASK(8) << 23, exp) | | ^ 2 errors generated. vim +/FIELD_GET +517 drivers/hwmon/applesmc.c 514 515 static inline u32 applesmc_float_to_u32(u32 d) 516 { > 517 u8 sign = FIELD_GET(BIT(31), d); 518 s32 exp = FIELD_GET(BIT_MASK(8) << 23, d) - 0x7F; 519 u32 fr = d & ((1u << 23) - 1); 520 521 if (sign || exp < 0) 522 return 0; 523 524 return BIT(exp) + (fr >> (23 - exp)); 525 } 526 527 static inline u32 applesmc_u32_to_float(u32 d) 528 { 529 u32 dc = d, bc = 0, exp; 530 531 if (!d) 532 return 0; 533 while (dc >>= 1) 534 ++bc; 535 exp = 0x7F + bc; > 536 return FIELD_PREP(BIT_MASK(8) << 23, exp) | 537 (d << (23 - (exp - 0x7F)) & BIT_MASK(23)); 538 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki