]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: cdc_ncm: fix 64bit division build error
authorBjørn Mork <bjorn@mork.no>
Mon, 19 May 2014 07:21:09 +0000 (09:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 May 2014 05:56:06 +0000 (01:56 -0400)
commit7d10d2610cc02d432168ca0c5d964cd9e85c1b06
tree98f8c2cf6654dd4d1d5d5052fb2da213e243a914
parentb6052af61a9e0dee236bcf4c69843126c0d28e4f
net: cdc_ncm: fix 64bit division build error

The upper timer_interval limit is arbitrary and much higher
than anything usable in the real world.  Reducing it from 15s
to ~4s to make the timer_interval fit in an u32 does not make
much difference.  The limit is still outside the practical
bounds.

This eliminates the need for a 64bit timer_interval, fixing a
build error related to 64bit division:

 drivers/built-in.o: In function `cdc_ncm_get_coalesce':
 ak8975.c:(.text+0x1ac994): undefined reference to `__aeabi_uldivmod'

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c
include/linux/usb/cdc_ncm.h