Arnd Bergmann
44472d1b83
atomic: Skip alignment check for try_cmpxchg() old arg
...
The 'old' argument in atomic_try_cmpxchg() and related functions is a
pointer to a normal non-atomic integer number, which does not require
to be naturally aligned, unlike the atomic_t/atomic64_t types themselves.
In order to add an alignment check with CONFIG_DEBUG_ATOMIC into the
normal instrument_atomic_read_write() helper, change this check to use
the non-atomic instrument_read_write(), the same way that was done
earlier for try_cmpxchg() in commit ec570320b0 ("locking/atomic:
Correct (cmp)xchg() instrumentation").
This prevents warnings on m68k calling the 32-bit atomic_try_cmpxchg()
with 16-bit aligned arguments as well as several more architectures
including x86-32 when calling atomic64_try_cmpxchg() with 32-bit
aligned u64 arguments.
Reported-by: Finn Thain <fthain@linux-m68k.org >
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Link: https://lore.kernel.org/all/cover.1757810729.git.fthain@linux-m68k.org/
2025-10-21 12:31:56 +02:00
..
2025-10-21 12:31:56 +02:00
2025-03-15 21:22:52 +09:00
2025-05-08 09:42:06 -07:00
2025-03-15 21:16:21 +09:00
2025-10-02 18:44:54 -07:00
2025-08-29 09:50:19 -07:00
2025-09-26 15:53:30 -05:00
2023-11-01 23:24:56 +09:00
2025-09-23 13:59:39 -07:00
2025-09-09 12:27:18 +02:00
2025-07-26 15:31:30 +09:00
2025-06-07 14:38:07 +09:00
2024-10-07 02:12:27 +09:00
2024-11-19 13:57:03 -08:00
2025-10-07 08:21:23 -07:00
2025-09-18 10:19:54 -06:00
2025-09-28 07:54:07 -04:00
2025-05-12 15:03:17 +09:00
2025-08-18 10:45:43 -06:00
2025-03-20 07:02:21 -04:00
2024-12-11 20:13:00 -08:00
2023-08-21 13:46:25 -07:00
2025-10-04 09:05:23 -07:00
2024-07-16 01:08:37 +09:00
2025-07-23 11:57:05 +02:00
2023-12-29 22:25:20 +09:00
2024-05-02 10:14:52 -06:00
2025-09-28 11:36:13 -07:00
2023-12-29 12:22:28 -08:00
2025-07-24 08:41:15 -06:00
2024-11-28 08:10:23 +09:00
2025-03-15 21:22:42 +09:00
2025-06-17 10:44:07 +02:00
2025-09-21 14:22:28 -07:00
2023-12-29 12:22:25 -08:00
2024-11-27 09:38:27 +09:00
2025-02-10 11:19:56 -07:00
2025-03-16 22:30:46 -07:00
2025-08-28 15:25:48 -07:00
2024-10-17 15:16:04 -07:00
2025-04-24 10:12:46 -06:00
2024-12-11 20:13:00 -08:00
2025-03-10 09:29:08 -07:00
2025-03-15 21:22:52 +09:00
2025-09-08 13:42:39 +02:00
2025-08-31 23:34:34 +02:00
2025-02-10 11:19:57 -07:00
2025-03-12 16:25:50 -06:00
2025-03-16 22:30:49 -07:00
2024-09-01 17:59:01 -07:00
2025-04-25 15:54:24 +02:00
2023-12-29 22:25:20 +09:00
2024-12-10 12:04:19 +00:00
2025-08-28 13:06:48 +02:00
2024-07-20 13:34:54 +09:00
2025-03-07 19:58:05 -08:00
2025-02-18 10:16:04 +01:00
2024-11-27 09:38:27 +09:00
2024-10-13 22:22:28 +02:00
2025-04-09 12:10:34 -06:00
2025-04-09 12:10:34 -06:00
2025-08-11 10:54:29 -06:00
2024-07-15 03:13:32 +09:00
2024-02-29 13:38:03 -08:00
2025-09-24 09:10:45 -07:00
2024-09-01 20:43:28 -07:00
2025-03-27 14:03:32 -05:00
2025-01-31 12:07:07 -08:00
2024-07-18 10:01:55 -07:00
2024-11-27 09:38:27 +09:00
2025-04-15 11:17:50 -07:00
2025-08-03 13:49:10 -07:00
2025-03-04 09:40:13 -08:00
2024-11-28 08:10:23 +09:00
2025-05-31 08:16:52 -07:00
2024-04-02 17:41:22 +02:00
2025-01-10 23:01:21 +09:00
2024-06-26 00:18:57 +09:00
2025-08-11 08:08:51 -05:00
2025-10-07 09:46:04 -07:00
2025-07-21 21:40:57 -07:00
2024-11-28 08:11:55 +09:00
2025-08-27 22:45:43 -07:00
2025-06-02 16:00:26 -07:00
2025-07-29 17:17:46 -07:00
2025-06-07 10:05:35 -07:00
2024-11-28 08:11:55 +09:00
2025-01-18 08:52:09 +09:00
2025-01-11 02:36:32 +09:00
2024-10-31 21:40:46 +09:00
2024-11-27 09:38:27 +09:00
2025-05-29 08:10:01 -07:00
2023-11-01 23:26:01 +09:00
2024-05-21 12:09:36 -07:00
2025-10-10 14:50:35 -07:00
2025-09-24 09:10:44 -07:00
2025-08-28 16:58:43 -07:00
2025-08-26 12:00:17 -07:00
2025-09-24 09:10:45 -07:00
2024-09-07 17:24:08 +09:00
2025-07-09 22:42:03 -07:00
2024-12-03 08:22:25 -08:00
2023-12-03 18:51:48 +09:00
2025-07-22 20:15:56 -04:00
2024-10-03 16:07:51 -04:00
2024-07-10 10:28:52 +02:00
2024-11-12 21:26:54 +01:00
2024-11-12 21:26:54 +01:00
2025-01-10 00:17:00 +01:00
2024-10-28 00:27:16 +01:00
2024-09-05 22:44:18 +02:00
2025-05-23 00:12:14 +02:00
2025-09-16 09:26:59 +02:00
2024-11-28 08:11:56 +09:00
2025-03-15 21:19:44 +09:00
2024-09-20 19:52:48 +03:00
2025-04-02 09:51:26 -04:00
2025-01-08 15:38:33 +01:00
2025-08-02 12:01:40 -07:00
2025-08-29 15:54:43 -06:00
2025-08-21 14:08:53 -06:00
2024-09-20 19:49:52 +03:00
2024-09-10 13:56:37 +09:00
2025-07-02 17:05:17 +02:00
2024-06-28 15:23:38 +02:00
2025-06-06 05:40:25 +09:00
2025-06-25 12:22:48 -06:00
2024-04-23 00:09:41 +09:00
2025-06-09 14:53:16 -06:00
2024-09-20 09:21:52 +09:00
2024-09-01 20:43:27 -07:00