Skip to content

Commit

Permalink
include/linux: enclose idr.h in #ifndef
Browse files Browse the repository at this point in the history
This patch encloses the idr.h header file in
#ifndef __IDR_H__ macro.

Signed-off-by: Luben Tuikov <luben_tuikov@adaptec.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
  • Loading branch information
Luben Tuikov authored and Adrian Bunk committed Nov 8, 2005
1 parent 9abdc4c commit f668ab1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/linux/idr.h
Original file line number Diff line number Diff line change
@@ -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>

@@ -77,3 +81,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_destroy(struct idr *idp);
void idr_init(struct idr *idp);

#endif /* __IDR_H__ */

0 comments on commit f668ab1

Please sign in to comment.