[tip:tools/kvm] tools/kvm: Add WRITE_ONCE() wrapper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  019052816a852a1f58ba1a1b88df4355fe085a1a
Gitweb:     http://git.kernel.org/tip/019052816a852a1f58ba1a1b88df4355fe085a1a
Author:     Ingo Molnar <mingo@xxxxxxxxxx>
AuthorDate: Thu, 15 Oct 2015 13:55:33 +0200
Committer:  Ingo Molnar <mingo@xxxxxxxxxx>
CommitDate: Thu, 15 Oct 2015 13:57:58 +0200

tools/kvm: Add WRITE_ONCE() wrapper

We eventually want to use the one in tools/include/ - but add a simple
wrapper for now, as we don't actually use it. (Only headers need it.)

Cc: Pekka Enberg <penberg@xxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
 tools/kvm/include/linux/compiler.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/kvm/include/linux/compiler.h b/tools/kvm/include/linux/compiler.h
index 898420b..245378e 100644
--- a/tools/kvm/include/linux/compiler.h
+++ b/tools/kvm/include/linux/compiler.h
@@ -17,4 +17,6 @@
 #define __must_check
 #define unlikely
 
+#define WRITE_ONCE(x, y)	(x) = (y)
+
 #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux