Arnd Bergmann
7e53f0390d
watchdog: kempld: fix gcc-4.3 build
...
[ Upstream commit 3736d4eb6a ]
gcc-4.3 can't decide whether the constant value in
kempld_prescaler[PRESCALER_21] is built-time constant or
not, and gets confused by the logic in do_div():
drivers/watchdog/kempld_wdt.o: In function `kempld_wdt_set_stage_timeout':
kempld_wdt.c:(.text.kempld_wdt_set_stage_timeout+0x130): undefined reference to `__aeabi_uldivmod'
This adds a call to ACCESS_ONCE() to force it to not consider
it to be constant, and leaves the more efficient normal case
in place for modern compilers, using an #ifdef to annotate
why we do this hack.
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Sasha Levin <alexander.levin@verizon.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-10-21 17:09:04 +02:00
..
2014-10-20 16:21:56 +02:00
2014-10-20 16:21:56 +02:00
2014-09-26 00:00:32 -07:00
2014-10-20 16:21:56 +02:00
2014-10-20 16:21:56 +02:00
2015-09-11 15:12:59 -07:00
2015-09-09 21:38:52 +02:00
2015-09-09 21:38:29 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2015-09-28 10:56:05 +02:00
2015-10-27 16:12:02 +01:00
2017-07-05 14:37:21 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:34:34 +02:00
2015-01-21 14:52:34 +01:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-10-14 14:32:06 +02:00
2015-09-09 21:39:22 +02:00
2015-06-22 15:54:31 +02:00
2015-09-09 21:39:22 +02:00
2015-09-28 10:56:01 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2015-06-22 15:54:36 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:33:41 +02:00
2015-10-28 22:57:17 +01:00
2015-10-28 22:58:32 +01:00
2015-02-17 21:32:08 +01:00
2015-08-11 15:03:52 +01:00
2015-09-09 21:39:22 +02:00
2015-11-23 09:00:03 +01:00
2017-10-21 17:09:04 +02:00
2015-08-05 10:35:49 -07:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:36:17 +02:00
2015-10-27 16:12:02 +01:00
2015-06-29 11:50:53 +02:00
2015-09-28 10:56:01 +02:00
2015-09-09 21:39:22 +02:00
2015-01-21 14:52:34 +01:00
2015-09-28 10:56:01 +02:00
2015-09-09 21:37:51 +02:00
2015-11-23 09:00:09 +01:00
2014-10-20 16:21:56 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:34:24 +02:00
2015-04-22 15:28:40 +02:00
2014-10-20 20:43:42 +02:00
2015-11-23 08:58:21 +01:00
2015-06-22 15:54:35 +02:00
2015-09-09 21:39:22 +02:00
2017-05-25 14:30:07 +02:00
2015-11-23 08:59:07 +01:00
2015-09-09 21:39:22 +02:00
2016-04-12 09:08:54 -07:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2014-10-20 20:55:02 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:38:29 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:34:14 +02:00
2015-11-23 08:59:45 +01:00
2015-08-05 10:35:49 -07:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2015-02-17 21:33:37 +01:00
2015-11-23 08:59:30 +01:00
2015-10-27 16:49:57 +01:00
2015-11-03 14:36:14 +01:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00