summaryrefslogtreecommitdiff
path: root/util/lock
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-06-16 21:51:55 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-18 19:07:00 +0000
commit104f811e6730e129a98fac6fc3941bbe0d0e857f (patch)
tree17a0d78af92eceb0cde468f56afc41f0ec726dd9 /util/lock
parent19cd951027b7bd7b726e085c46b8cc9c136b0980 (diff)
downloadchrome-ec-104f811e6730e129a98fac6fc3941bbe0d0e857f.tar.gz
cleanup: fix all the header guards
This unifies all the EC header files to use __CROS_EC_FILENAME_H as the include guard. Well, except for test/ util/ and extra/ which use __TEST_ __UTIL_ and __EXTRA_ prefixes respectively. BUG=chromium:496895 BRANCH=none TEST=make buildall -j Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: Iea71b3a08bdec94a11239de810a2b2e152b15029 Reviewed-on: https://chromium-review.googlesource.com/278121 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'util/lock')
-rw-r--r--util/lock/csem.h6
-rw-r--r--util/lock/gec_lock.h6
-rw-r--r--util/lock/ipc_lock.h6
-rw-r--r--util/lock/locks.h6
4 files changed, 12 insertions, 12 deletions
diff --git a/util/lock/csem.h b/util/lock/csem.h
index 10a5c5ff94..469a824259 100644
--- a/util/lock/csem.h
+++ b/util/lock/csem.h
@@ -32,8 +32,8 @@
* via Cobalt Networks. It has been fairly extensively modified since then.
*/
-#ifndef CSEM_H__
-#define CSEM_H__
+#ifndef __UTIL_CSEM_H
+#define __UTIL_CSEM_H
#include <sys/ipc.h>
#include <time.h>
@@ -151,4 +151,4 @@ extern int csem_down_timeout_undo(int sem_id, struct timespec *timeout);
*/
extern time_t csem_get_otime(int sem_id);
-#endif /* CSEM_H__ */
+#endif /* __UTIL_CSEM_H */
diff --git a/util/lock/gec_lock.h b/util/lock/gec_lock.h
index 13b0f9d92c..8480700ddd 100644
--- a/util/lock/gec_lock.h
+++ b/util/lock/gec_lock.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef GEC_LOCK_H__
-#define GEC_LOCK_H__
+#ifndef __UTIL_GEC_LOCK_H
+#define __UTIL_GEC_LOCK_H
/*
* acquire_gec_lock - acquire global lock
@@ -48,4 +48,4 @@ extern int acquire_gec_lock(int timeout_secs);
*/
extern int release_gec_lock(void);
-#endif /* GEC_LOCK_H__ */
+#endif /* __UTIL_GEC_LOCK_H */
diff --git a/util/lock/ipc_lock.h b/util/lock/ipc_lock.h
index b85de286b7..39ae277a7e 100644
--- a/util/lock/ipc_lock.h
+++ b/util/lock/ipc_lock.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef IPC_LOCK_H__
-#define IPC_LOCK_H__
+#ifndef __UTIL_IPC_LOCK_H
+#define __UTIL_IPC_LOCK_H
#include <sys/ipc.h>
@@ -68,4 +68,4 @@ extern int acquire_lock(struct ipc_lock *lock, int timeout_msecs);
*/
extern int release_lock(struct ipc_lock *lock);
-#endif /* IPC_LOCK_H__ */
+#endif /* __UTIL_IPC_LOCK_H */
diff --git a/util/lock/locks.h b/util/lock/locks.h
index 39dfc933f3..74360883fd 100644
--- a/util/lock/locks.h
+++ b/util/lock/locks.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef LOCKS_H__
-#define LOCKS_H__
+#ifndef __UTIL_LOCKS_H
+#define __UTIL_LOCKS_H
/* this is the base key, since we have to pick something global */
#define IPC_LOCK_KEY (0x67736c00 & 0xfffffc00) /* 22 bits "gsl" */
@@ -44,4 +44,4 @@
/* for Google EC */
#define GECLOCK (IPC_LOCK_KEY + 1)
-#endif /* LOCKS_H__ */
+#endif /* __UTIL_LOCKS_H */