From 03dfa30b70754e500158be1d91348ca8b952c50f Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 9 Oct 2012 23:26:28 -0400 Subject: [PATCH] init.h: Protect against multiple includes --- include/init.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/init.h b/include/init.h index e953da7..92b99f9 100644 --- a/include/init.h +++ b/include/init.h @@ -18,6 +18,9 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#ifndef INIT_H +#define INIT_H + struct initcall_func { void (*fptr)(); }; @@ -29,3 +32,5 @@ struct initcall_func { #define early_initcall(func) _initcall("early", 0, func) #define driversubsys_initcall(func) _initcall("driversubsys", 1, func) #define device_initcall(func) _initcall("device", 2, func) + +#endif /* INIT_H */