compat: old kernels without WRITE_ONCE

This commit is contained in:
Thomas Schoebel-Theuer 2021-03-13 12:28:37 +01:00
parent 8050499e39
commit 9f2e0c853e
1 changed files with 4 additions and 0 deletions

View File

@ -306,5 +306,9 @@ extern int _compat_unlink(
#ifndef READ_ONCE
#define READ_ONCE ACCESS_ONCE
#endif
#ifndef WRITE_ONCE
/* quirk */
#define WRITE_ONCE(dst,src) ACCESS_ONCE(dst) = (src)
#endif
#endif /* _MARS_COMPAT */