Re: [PATCH wireless 1/2] wifi: nxpwifi: fix hex parsing in nxpwifi_parse_cal_cfg()
From: kernel test robot
Date: Mon Nov 02 2026 - 19:28:56 EST
Hi Viktor,
kernel test robot noticed the following build errors:
[auto build test ERROR on wireless/main]
url: https://github.com/intel-lab-lkp/linux/commits/Viktor-Korsnes/wifi-nxpwifi-add-missing-header-to-HOST_CMD_CFG_DATA/20261102-131800
base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless.git main
patch link: https://lore.kernel.org/r/20261102121856.1011263-1-viktor.korsnes%40remarkable.no
patch subject: [PATCH wireless 1/2] wifi: nxpwifi: fix hex parsing in nxpwifi_parse_cal_cfg()
config: i386-buildonly-randconfig-1002-20261103 (https://download.01.org/0day-ci/archive/20261103/202611030826.7OV08JJo-lkp@xxxxxxxxx/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261103/202611030826.7OV08JJo-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/202611030826.7OV08JJo-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> drivers/net/wireless/nxp/nxpwifi/sta_cmd.c:1405:8: error: call to undeclared function 'hex2bin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1405 | hex2bin(d, s, 1))
| ^
1 error generated.
vim +/hex2bin +1405 drivers/net/wireless/nxp/nxpwifi/sta_cmd.c
1393
1394 static u32 nxpwifi_parse_cal_cfg(u8 *src, size_t len, u8 *dst, size_t dst_size)
1395 {
1396 u8 *s = src, *d = dst;
1397
1398 while (s - src < len) {
1399 if (*s && (isspace(*s) || *s == '\t')) {
1400 s++;
1401 continue;
1402 }
1403 if (isxdigit(*s)) {
1404 if (d - dst >= dst_size || src + len - s < 2 ||
> 1405 hex2bin(d, s, 1))
1406 return 0;
1407 d++;
1408 s += 2;
1409 } else {
1410 s++;
1411 }
1412 }
1413
1414 return d - dst;
1415 }
1416
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki