]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: fix for 64-bit integer division
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Fri, 20 Jun 2014 07:05:07 +0000 (10:05 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 20 Jun 2014 18:13:45 +0000 (14:13 -0400)
commitd4e520a0a3ff74a0c14bd0b15a7e921e54ebcd76
treea2e896fd3ceb766cb91a0cc9664ee8259b33721c
parentd1c7a19911424e84601f0796f4182a6edb25fe33
wil6210: fix for 64-bit integer division

On some platforms, cycles_t is 64-bit, and gcc generates call to
__udivdi3 for straight division of cycles_t/cycles_t. This leads
to compilation failure, as this function is not exist in the kernel
runtime. do_div() to rescue

Original report:

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git master
head:   a6356033d9f05c8bc99b69ccdcba2f9ae4e5cfa8
commit: 65e6517218bc34e9597413072c979a7ac33fdf6d [81/103] wil6210: Tx performance monitoring
config: i386-randconfig-ha3-0620 (attached as .config)

All error/warnings:

   drivers/built-in.o: In function `wil_vring_debugfs_show':
>> debugfs.c:(.text+0x39b9be): undefined reference to `__udivdi3'

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/debugfs.c