Ralf Baechle
cd6cbde6b0
WATCHDOG: sb_wdog: Fix 32 bit build failure
...
Fixes the following linking problem:
drivers/watchdog/sb_wdog.c:211: undefined reference to `__udivdi3'
This results from reading a 64 bit register, then dividing the value by
1000000. For 32 bit kernels gcc will use the helper function __udivdi3
from libgcc which the kernel intentionally doesn't provide.
In the read registerbits 23..63 are always zero and only bits 0..22 are
signficant. So a simple cast to truncate the read value to 32 bits
fixes the issue.
Reported and initial patch by Markos Chandras <markos.chandras@imgtec.com>.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: Markos Chandras <markos.chandras@imgtec.com>
2013-06-21 18:07:03 +02:00
..
2013-06-07 18:33:12 -07:00
2013-06-03 17:55:09 +09:00
2013-04-29 13:26:48 -04:00
2013-05-23 09:27:08 -07:00
2013-05-17 14:31:05 -04:00
2013-05-24 16:22:52 -07:00
2013-05-01 14:08:52 -07:00
2013-04-11 17:05:37 +00:00
2013-05-07 02:16:21 -04:00
2013-05-24 16:22:52 -07:00
2013-05-30 18:27:24 -07:00
2013-05-07 11:28:42 -07:00
2013-06-05 13:51:29 +02:00
2013-04-26 22:30:25 +02:00
2013-05-28 10:09:38 -07:00
2013-06-08 02:13:44 +05:30
2013-05-21 09:13:11 +02:00
2013-04-29 09:30:25 -07:00
2013-05-09 09:59:16 -07:00
2013-05-09 10:11:48 -07:00
2013-05-13 20:20:02 +01:00
2013-05-23 18:24:10 -07:00
2013-06-05 14:35:08 +10:00
2013-05-06 13:07:33 +02:00
2013-05-21 09:56:55 -07:00
2013-05-19 08:19:29 -07:00
2013-05-07 14:01:27 -07:00
2013-05-21 11:11:45 -07:00
2013-05-07 02:16:21 -04:00
2013-05-11 15:23:17 -07:00
2013-06-04 18:46:45 +01:00
2013-06-04 17:06:46 -07:00
2013-06-05 09:11:06 +09:00
2013-05-06 14:59:13 -07:00
2013-06-08 15:50:42 -07:00
2013-05-20 13:38:14 -07:00
2013-05-24 16:22:51 -07:00
2013-05-08 10:49:18 +09:30
2013-05-02 10:16:16 -07:00
2013-05-19 18:57:50 +01:00
2013-06-01 19:53:41 +09:00
2013-05-18 11:55:52 +02:00
2013-05-07 02:16:21 -04:00
2013-05-08 10:13:35 -07:00
2013-05-22 07:18:41 -07:00
2013-05-23 09:26:32 -07:00
2013-05-26 14:23:11 -04:00
2013-05-18 11:55:55 +02:00
2013-06-04 17:25:18 -07:00
2013-05-21 10:48:41 +02:00
2013-05-15 10:58:22 -07:00
2013-05-04 14:47:26 -04:00
2013-05-18 10:46:50 -07:00
2013-06-01 14:44:25 +02:00
2013-06-01 14:46:42 +02:00
2013-05-30 10:51:20 -07:00
2013-06-07 18:11:02 -07:00
2013-06-01 23:51:48 +02:00
2013-05-02 10:16:16 -07:00
2013-05-25 20:32:49 -07:00
2013-05-01 17:51:54 -07:00
2013-05-25 21:24:15 -07:00
2013-05-18 11:55:58 +02:00
2013-06-20 16:20:44 +02:00
2013-05-30 11:58:40 +01:00
2013-05-07 14:04:56 -07:00
2013-04-12 10:26:24 +02:00
2013-05-07 14:02:00 -07:00
2013-05-24 16:22:53 -07:00
2013-05-31 17:23:49 +02:00
2013-06-01 20:05:20 +09:00
2013-05-18 10:54:54 -07:00
2013-05-09 10:15:46 -07:00
2013-06-06 16:34:11 -07:00
2013-05-31 01:21:28 -07:00
2013-05-18 11:57:30 +02:00
2013-06-03 10:08:28 -07:00
2013-05-21 10:13:23 -07:00
2013-06-06 09:06:25 -07:00
2013-04-29 18:28:43 -07:00
2013-06-05 08:54:16 -06:00
2013-05-08 10:49:03 +09:30
2013-06-01 03:18:55 +08:00
2013-05-18 11:58:03 +02:00
2013-06-21 18:07:03 +02:00
2013-05-29 15:24:55 -04:00
2013-05-01 17:29:18 -04:00
2013-05-04 12:31:18 -07:00
2013-05-04 12:31:18 -07:00