diff options
author | Baokun Li <[email protected]> | 2024-01-24 22:28:57 +0800 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-01-25 17:23:51 +0100 |
commit | ad72872eb3ae634d1e4296a384baa81e85cc6acc (patch) | |
tree | dcc6b23b8d07fd6527cc2a587459780a3e6d778c /lib/debugobjects.c | |
parent | 4b944f8ef99641d5af287c7d9df91d20ef5d3e88 (diff) |
asm-generic: remove extra type checking in acquire/release for non-SMP case
If CONFIG_SMP is not enabled, the smp_load_acquire/smp_store_release is
implemented as READ_ONCE/READ_ONCE and barrier() and type checking.
READ_ONCE/READ_ONCE already checks the pointer type, and then checks it
more stringently outside, but the non-SMP case simply isn't relevant, so
remove the extra compiletime_assert_atomic_type() to avoid compilation
errors.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Suggested-by: Linus Torvalds <[email protected]>
Signed-off-by: Baokun Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions