All of lore.kernel.org
 help / color / mirror / Atom feed
* [chao:feature/subpage 9/10] file.c:undefined reference to `__divdi3'
@ 2026-08-30 15:16 kernel test robot
  2026-08-31  4:58 ` Xinping Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-08-30 15:16 UTC (permalink / raw)
  To: Kelvin Zhang; +Cc: oe-kbuild-all, Chao Yu

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/subpage
head:   3a537197e7b9327a386b4c5deab273a387072d1f
commit: 7967e8f5c2c2f347acdc20281027d28c46b8a9e1 [9/10] f2fs: parameterize block size and mask macros
config: sh-randconfig-r071-20260830 (https://download.01.org/0day-ci/archive/20260830/202608302349.AXJE2LxU-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 16.1.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260830/202608302349.AXJE2LxU-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608302349.AXJE2LxU-lkp@intel.com/

All errors (new ones prefixed by >>):

   sh4-linux-ld: fs/f2fs/file.o: in function `f2fs_sec_trim_file':
>> file.c:(.text+0x3468): undefined reference to `__divdi3'

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [chao:feature/subpage 9/10] file.c:undefined reference to `__divdi3'
  2026-08-30 15:16 [chao:feature/subpage 9/10] file.c:undefined reference to `__divdi3' kernel test robot
@ 2026-08-31  4:58 ` Xinping Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Xinping Zhang @ 2026-08-31  4:58 UTC (permalink / raw)
  To: kernel test robot; +Cc: oe-kbuild-all, Chao Yu

Thanks for the report.

This is fixed by using F2FS_BLK_ALIGN(sbi, end_addr) instead of
DIV_ROUND_UP(end_addr, F2FS_BLKSIZE(sbi)). F2FS_BLK_ALIGN() uses
DIV_ROUND_UP_ULL()/do_div() and avoids a runtime 64-bit division on
32-bit architectures.

I folded the fix into "f2fs: parameterize block size and mask macros".
A W=1 SH build with the reported randconfig now passes, and
fs/f2fs/file.o no longer references __divdi3.

Thanks,
Kelvin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-31  4:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-30 15:16 [chao:feature/subpage 9/10] file.c:undefined reference to `__divdi3' kernel test robot
2026-08-31  4:58 ` Xinping Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.