]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/page: Add memory clobber to page_set_storage_key()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 16 Jun 2025 15:00:28 +0000 (17:00 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 29 Jun 2025 11:12:01 +0000 (13:12 +0200)
commitac5bf0665011db2b4aa167e971195a166e0d8d2f
tree0759a778c13de7cefdeabb38db8a97c69cd5062f
parent839d364e41c064cb8bee1c028822f1e97b206ef6
s390/page: Add memory clobber to page_set_storage_key()

Add memory clobbers to the page_set_storage_key() inline assemblies. This
allows for data dependencies from other code, which is important to prevent
the compiler from reordering instructions if required.

Note that this doesn't fix a bug in existing code; this is just a
prerequisite for upcoming code changes.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/page.h