Skip to contentSkip to conversation

futex: add missing header guards

PATCH In review Emilio G. Cota 2 participants 2 messages Oct 13, 2017 – Oct 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 futex: add missing header guards

The header file was introduced by fbcc3e5 ("qemu-thread: optimize QemuLockCnt with futexes on Linux", 2017-01-16) without header guards. Add them.

---
 include/qemu/futex.h | 5 +++++
 1 file changed, 5 insertions(+)
include/qemu/futex.h +5 -0
index bb7dc9e..91ae889 100644
@@ -11,6 +11,9 @@
  *
  */
 
+#ifndef QEMU_FUTEX_H
+#define QEMU_FUTEX_H
+
 #include <sys/syscall.h>
 #include <linux/futex.h>
 
@@ -34,3 +37,5 @@ static inline void qemu_futex_wait(void *f, unsigned val)
         }
     }
 }
+
+#endif /* QEMU_FUTEX_H */
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Cc trivial
Quoted 4 lines · Emilio G. Cota

The header file was introduced by fbcc3e5 ("qemu-thread: optimize QemuLockCnt with futexes on Linux", 2017-01-16) without header guards. Add them.

Quoted 25 lines
---
 include/qemu/futex.h | 5 +++++
 1 file changed, 5 insertions(+)
include/qemu/futex.h +5 -0
index bb7dc9e..91ae889 100644
@@ -11,6 +11,9 @@
  *
  */
 
+#ifndef QEMU_FUTEX_H
+#define QEMU_FUTEX_H
+
 #include <sys/syscall.h>
 #include <linux/futex.h>
 
@@ -34,3 +37,5 @@ static inline void qemu_futex_wait(void *f, unsigned val)
         }
     }
 }
+
+#endif /* QEMU_FUTEX_H */