Arnd Bergmann
ec7633de40
sparc: mark __arch_xchg() as __always_inline
...
An otherwise correct change to the atomic operations uncovered an
existing bug in the sparc __arch_xchg() function, which is calls
__xchg_called_with_bad_pointer() when its arguments are unknown at
compile time:
ERROR: modpost: "__xchg_called_with_bad_pointer" [lib/atomic64_test.ko] undefined!
This now happens because gcc determines that it's better to not inline the
function. Avoid this by just marking the function as __always_inline
to force the compiler to do the right thing here.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/all/c525adc9-6623-4660-8718-e0c9311563b8@roeck-us.net/
Fixes: d12157efc8e08 ("locking/atomic: make atomic*_{cmp,}xchg optional")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://lore.kernel.org/r/20230628094938.2318171-1-arnd@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
2023-07-13 09:54:32 -07:00
..
2019-06-19 17:09:52 +02:00
2018-03-18 07:38:46 -07:00
2017-11-02 11:10:55 +01:00
2017-12-04 18:03:39 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-06-05 09:57:17 +02:00
2023-06-05 09:57:17 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-07-21 18:22:02 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-06-30 19:52:41 -07:00
2022-01-15 08:47:31 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-21 15:35:43 -08:00
2020-10-25 14:51:49 -07:00
2022-04-23 09:27:17 -07:00
2020-06-08 11:05:57 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-08-20 15:45:21 -04:00
2020-08-20 15:45:21 -04:00
2020-08-20 15:45:21 -04:00
2017-11-02 11:10:55 +01:00
2017-11-15 14:21:03 +09:00
2023-07-13 09:54:32 -07:00
2023-07-13 09:54:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-04-26 13:35:54 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-14 20:19:31 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:37:16 +02:00
2023-02-15 12:35:20 +01:00
2022-07-22 17:24:47 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-03 20:05:18 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-03 20:05:18 -05:00
2023-05-18 11:07:54 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2020-05-12 19:34:53 +03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-03-23 14:08:18 -04:00
2020-03-27 23:58:52 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-14 11:25:28 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-24 10:34:52 -08:00
2022-05-13 16:48:55 -07:00
2017-11-02 11:10:55 +01:00
2018-03-18 07:38:45 -07:00
2020-08-07 11:33:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-10-05 09:44:41 +01:00
2022-09-08 16:49:14 +02:00
2020-06-09 09:39:13 -07:00
2022-09-08 16:49:14 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-09 06:54:27 +02:00
2018-05-09 06:54:27 +02:00
2017-11-02 11:10:55 +01:00
2023-06-09 17:44:16 -07:00
2023-06-09 17:44:16 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-02-13 22:13:29 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-09-30 21:24:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-28 14:12:21 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-04-28 23:16:13 -07:00
2017-11-02 11:10:55 +01:00
2018-03-18 07:38:48 -07:00
2020-10-27 16:02:38 +01:00
2023-03-16 13:08:40 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-06-29 10:53:55 -07:00
2017-11-02 11:10:55 +01:00
2023-06-19 16:25:29 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-02-09 16:51:41 -08:00
2020-04-10 15:36:21 -07:00
2017-11-02 11:10:55 +01:00
2018-11-18 13:35:21 -08:00
2017-11-02 11:10:55 +01:00
2022-08-04 11:46:53 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-07-10 12:00:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-07-01 11:06:03 -07:00
2021-07-01 11:06:03 -07:00
2017-11-02 11:10:55 +01:00
2023-02-02 22:33:11 -08:00
2023-04-18 16:30:00 -07:00
2017-11-02 11:10:55 +01:00
2023-02-02 22:33:10 -08:00
2017-11-02 11:10:55 +01:00
2022-09-11 21:55:07 -07:00
2022-09-11 21:55:07 -07:00
2017-11-02 11:10:55 +01:00
2023-04-10 18:32:31 -05:00
2017-11-02 11:10:55 +01:00
2021-10-06 11:27:41 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-05-18 19:01:28 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-09-14 17:04:49 -07:00
2022-09-29 19:21:10 -07:00
2023-03-08 08:44:25 -08:00
2017-11-02 11:10:55 +01:00
2020-08-12 10:57:57 -07:00
2017-11-07 10:32:44 +01:00
2021-02-11 07:59:54 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-03-25 10:19:43 +09:00
2020-03-25 10:19:43 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-02-25 09:36:06 +01:00
2017-11-02 11:10:55 +01:00
2021-09-14 16:06:20 +02:00
2020-06-23 10:49:54 +02:00
2017-11-02 11:10:55 +01:00
2020-12-12 09:17:38 -07:00
2022-02-25 09:36:06 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-06-09 17:44:16 -07:00
2017-11-02 11:10:55 +01:00
2022-05-13 23:59:23 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-03 10:32:54 +02:00
2022-07-21 10:50:13 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:04 -08:00
2017-11-02 11:10:55 +01:00
2020-07-10 12:00:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-17 20:21:44 -08:00
2017-11-02 11:10:55 +01:00
2018-03-18 07:38:45 -07:00
2017-11-02 11:10:55 +01:00
2022-02-25 09:36:06 +01:00
2023-03-16 13:08:39 -07:00
2022-02-25 09:36:05 +01:00
2022-04-26 13:35:45 -07:00
2017-11-02 11:10:55 +01:00
2019-05-21 11:28:45 +02:00
2020-11-06 23:14:57 +01:00
2018-10-25 10:36:19 -07:00
2017-11-02 11:10:55 +01:00
2020-05-13 15:32:00 -07:00
2023-01-27 13:45:41 +01:00
2017-11-02 11:10:55 +01:00
2019-12-10 10:12:55 +01:00
2020-08-06 16:13:13 +02:00
2017-11-02 11:10:55 +01:00
2022-02-11 20:39:39 +11:00
2022-02-11 20:39:39 +11:00
2017-11-02 11:10:55 +01:00