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
..
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2013-01-25 12:21:48 -08:00
2013-01-17 17:39:33 -08:00
2013-03-01 12:55:27 +01:00
2013-03-01 12:53:45 +01:00
2011-11-28 22:50:39 +08:00
2013-05-18 11:58:04 +02:00
2013-03-01 12:47:31 +01:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2013-03-01 12:46:28 +01:00
2013-01-17 17:39:33 -08:00
2012-12-19 22:24:41 +01:00
2013-02-22 23:31:31 -05:00
2012-12-19 22:25:07 +01:00
2013-01-02 12:06:49 +01:00
2013-05-18 11:58:04 +02:00
2013-01-25 12:21:48 -08:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2012-07-23 12:46:38 +02:00
2013-03-01 12:18:33 +01:00
2012-11-28 12:00:24 -08:00
2012-12-19 22:24:40 +01:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2013-05-18 11:58:04 +02:00
2012-03-27 20:06:02 +02:00
2012-03-27 19:59:26 +02:00
2012-03-27 19:59:26 +02:00
2012-03-27 20:06:02 +02:00
2012-05-23 16:24:43 +02:00
2012-03-27 20:06:02 +02:00
2012-05-09 17:20:09 +02:00
2012-05-09 17:20:09 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2013-01-25 12:21:48 -08:00
2013-04-14 09:09:10 +02:00
2012-11-28 12:00:24 -08:00
2013-01-25 12:21:48 -08:00
2012-09-27 23:34:03 +10:00
2012-03-28 15:58:21 -07:00
2013-03-01 12:44:40 +01:00
2013-01-25 12:21:48 -08:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-12-19 22:25:06 +01:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2011-01-12 13:51:23 +00:00
2012-03-27 20:06:02 +02:00
2010-08-05 13:26:22 +01:00
2012-11-28 12:00:24 -08:00
2013-03-01 12:49:02 +01:00
2011-03-15 16:02:27 +00:00
2013-03-01 12:53:45 +01:00
2012-03-28 15:58:21 -07:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-03-27 20:06:02 +02:00
2013-03-01 12:53:45 +01:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2013-03-01 12:31:14 +01:00
2012-11-28 12:00:24 -08:00
2013-05-09 08:12:00 +02:00
2012-07-09 17:37:35 +01:00
2013-06-21 18:07:03 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2013-05-09 08:12:00 +02:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:07:21 +02:00
2012-12-19 22:24:38 +01:00
2013-03-22 23:21:47 +01:00
2013-03-22 23:21:55 +01:00
2013-03-01 12:44:34 +01:00
2012-11-28 12:00:24 -08:00
2013-01-02 12:07:05 +01:00
2013-01-25 12:21:48 -08:00
2013-02-14 00:22:53 +01:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2013-03-01 12:48:36 +01:00
2012-05-30 07:54:25 +02:00
2013-05-09 08:13:41 +02:00
2009-03-25 09:07:04 +00:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00