mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
include/linux: enclose idr.h in #ifndef
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>
This commit is contained in:
parent
9abdc4cd8a
commit
f668ab1acc
1 changed files with 6 additions and 0 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue