Skip to contentSkip to conversation

include/linux: enclose idr.h in #ifndef

PATCH In review Luben Tuikov 1 participant 1 message Aug 16, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 include/linux: enclose idr.h in #ifndef

Hi,

This patch encloses the idr.h header file in
#ifndef __IDR_H__ macro.

include/linux/idr.h renamed from include/linux/idr.h.old +6 -0
@@ -8,6 +8,10 @@
  * Small id to pointer translation service avoiding fixed sized
  * tables.
  */
+
+#ifndef __IDR_H__
+#define __IDR_H__
+
 #include <linux/types.h>
 #include <linux/bitops.h>
 
@@ -76,3 +80,5 @@
 int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id);
 void idr_remove(struct idr *idp, int id);
 void idr_init(struct idr *idp);
+
+#endif /* __IDR_H__ */