bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 23/66] i386/i386/ipl.h: remove ifdef and add ifndef


From: Marin Ramesa
Subject: [PATCH 23/66] i386/i386/ipl.h: remove ifdef and add ifndef
Date: Thu, 5 Dec 2013 22:03:17 +0100

This code is used even if KERNEL is not defined. Remove the ifdef.

* i386/i386/ipl.h [KERNEL]: Remove ifdef.
[_I386_IPL_H_]: Add ifndef.

---
 i386/i386/ipl.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/i386/i386/ipl.h b/i386/i386/ipl.h
index 8f729e1..7503ac3 100644
--- a/i386/i386/ipl.h
+++ b/i386/i386/ipl.h
@@ -49,6 +49,8 @@ OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION
 WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
 
+#ifndef _I386_IPL_H_
+#define _I386_IPL_H_
 
 #define SPL0            0
 #define SPL1            1
@@ -67,7 +69,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 #define NSPL           (SPL7 + 1)
 
-#ifdef KERNEL
 #ifndef        __ASSEMBLER__
 #include <machine/machspl.h>
 extern void    (*ivect[])();
@@ -75,4 +76,5 @@ extern int    iunit[];
 extern int     intpri[];
 extern spl_t   curr_ipl;
 #endif /* __ASSEMBLER__ */
-#endif /* KERNEL */
+
+#endif /* _I386_IPL_H_ */
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]