Skip to contentSkip to conversation

apds9999.c:(.text.apds9999_read_raw+0x548): undefined reference to `__aeabi_uldivmod'

PATCH kernel test robot 2 participants 2 messages May 29

Subsystems (2)
lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
head:   6f15decff24dac42895c0f01f0c2143f9b8961a6
commit: 0467fb7ad204eeb42ed04db475ad05e6311a5c2d [242/251] iio: light: add support for APDS9999 sensor
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20260529/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260529/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

arm-linux-gnueabi-ld: drivers/iio/light/apds9999.o: in function `apds9999_read_raw':

>> apds9999.c:(.text.apds9999_read_raw+0x548): undefined reference to `__aeabi_uldivmod'

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

maintainer
#1 lore raw
Quoted 7 lines · On Fri, 29 May 2026 12:08:26 +0800 kernel test robot <[email protected]> wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
head:   6f15decff24dac42895c0f01f0c2143f9b8961a6
commit: 0467fb7ad204eeb42ed04db475ad05e6311a5c2d [242/251] iio: light: add support for APDS9999 sensor
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20260529/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260529/[email protected]/reproduce)
Quoted 10 lines

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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   arm-linux-gnueabi-ld: drivers/iio/light/apds9999.o: in function `apds9999_read_raw':
Quoted 1 line
Quoted 1 line

apds9999.c:(.text.apds9999_read_raw+0x548): undefined reference to `__aeabi_uldivmod'

Looks like one case got missed - I'll apply this tweak.

drivers/iio/light/apds9999.c +1 -1
index 215f3e8087c9..5285d148fbb5 100644
@@ -197,7 +197,7 @@ static int apds9999_read_raw(struct iio_dev *indio_dev,
 
                /* scale_nano = 54 * 1e12 / (gain * itime_us) nano-lux/count */
                scale_nano = div_u64(54ULL * NSEC_PER_SEC * USEC_PER_MSEC, (u32)(gain * itime_us));
-               *val = (int)(scale_nano / NSEC_PER_SEC);
+               *val = (int)div_u64(scale_nano, NSEC_PER_SEC);
                *val2 = (int)(scale_nano % NSEC_PER_SEC);
                return IIO_VAL_INT_PLUS_NANO;
 
Quoted 3 lines

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