summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-18 09:38:57 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-18 09:45:06 +0100
commitc929d179530872cb5f393bc604089e36d66b1841 (patch)
tree1d5052f638113094731089f24e06066dc1c70ce4 /device
parente9e9c47f7f398a590deb4c2491488394d7247166 (diff)
Add ifndefs
Finish up with the addition of ifndefs. * device/buf.h: Add ifndef. * device/dev_master.h: Likewise. * include/device/tty_status.h: Likewise. * include/mach/version.h: Likewise. * ipc/ipc_machdep.h: Likewise.
Diffstat (limited to 'device')
-rw-r--r--device/buf.h5
-rw-r--r--device/dev_master.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/device/buf.h b/device/buf.h
index 80466c8..806eb8d 100644
--- a/device/buf.h
+++ b/device/buf.h
@@ -30,6 +30,9 @@
* Definitions to make new IO structures look like old ones
*/
+#ifndef _DEVICE_BUF_H_
+#define _DEVICE_BUF_H_
+
/*
* io_req and fields
*/
@@ -100,3 +103,5 @@ extern void minphys(io_req_t);
*/
#define biodone iodone
#define biowait iowait
+
+#endif /* _DEVICE_BUF_H_ */
diff --git a/device/dev_master.h b/device/dev_master.h
index 964ae82..6ad1152 100644
--- a/device/dev_master.h
+++ b/device/dev_master.h
@@ -30,6 +30,9 @@
* Bind an IO operation to the master CPU.
*/
+#ifndef _DEVICE_DEV_MASTER_H_
+#define _DEVICE_DEV_MASTER_H_
+
#include <cpus.h>
#if NCPUS > 1
@@ -58,3 +61,5 @@
#define io_release_master()
#endif NCPUS > 1
+
+#endif /* _DEVICE_DEV_MASTER_H_ */