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