]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Fix DIV_ROUND_UP compile error.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 21 May 2012 15:44:33 +0000 (08:44 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 21 May 2012 16:00:43 +0000 (09:00 -0700)
commit1c48120bb8583ef999ebb043bf9b6ec04b64f060
treeb9e0f3f8884fccf8c4793aa43ef3ba428defcfa7
parent4ee69ab6eb144da82ed7b51d7998fcf3fb4e703b
xhci: Fix DIV_ROUND_UP compile error.

Fengguang reports that the xHCI driver isn't linked properly on his
machine:

ERROR: "__udivdi3" [drivers/usb/host/xhci-hcd.ko] undefined!
ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined!
ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined!

The driver compiles fine on my 64-bit box (gcc version 4.6.1).
Fengguang thinks it's because the xHCI driver was using DIV_ROUND_UP()
instead of DIV_ROUND_UP_ULL() with arguments that were unsigned long
long variables.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-by: Wu Fengguang <wfg@linux.intel.com>
drivers/usb/host/xhci.c