Re: [PATCH] iio: hid-sensors: fix fractional part for unit exponents -7 and -8

From: kernel test robot

Date: Tue Nov 03 2026 - 19:47:20 EST


Hi Srinivas,

kernel test robot noticed the following build errors:

[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v7.3 next-20261030]
[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/Srinivas-Pandruvada/iio-hid-sensors-fix-fractional-part-for-unit-exponents-7-and-8/20261102-142308
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20261102222309.439895-1-srinivas.pandruvada%40linux.intel.com
patch subject: [PATCH] iio: hid-sensors: fix fractional part for unit exponents -7 and -8
config: i386-randconfig-1001-20261103 (https://download.01.org/0day-ci/archive/20261104/202611040826.T95bI1SU-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261104/202611040826.T95bI1SU-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/202611040826.T95bI1SU-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

ld: drivers/iio/common/hid-sensors/hid-sensor-attributes.o: in function `split_micro_fraction':
>> drivers/iio/common/hid-sensors/hid-sensor-attributes.c:102:(.text+0x573): undefined reference to `__udivdi3'


vim +102 drivers/iio/common/hid-sensors/hid-sensor-attributes.c

95
96 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2)
97 {
98 int divisor = int_pow(10, exp);
99
100 *val1 = no / divisor;
101 if (exp > 6)
> 102 *val2 = no % divisor / int_pow(10, exp - 6);
103 else
104 *val2 = no % divisor * int_pow(10, 6 - exp);
105 }
106

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki