Remove "#ifdef __KERNEL__" checks from unexported headers
Remove the "#ifdef __KERNEL__" tests from unexported header files in linux/include whose entire contents are wrapped in that preprocessor test. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
71cc2c2152
commit
735643ee6c
41 changed files with 1 additions and 130 deletions
|
@ -15,8 +15,6 @@
|
|||
#ifndef _KREF_H_
|
||||
#define _KREF_H_
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <asm/atomic.h>
|
||||
|
||||
|
@ -29,5 +27,4 @@ void kref_init(struct kref *kref);
|
|||
void kref_get(struct kref *kref);
|
||||
int kref_put(struct kref *kref, void (*release) (struct kref *kref));
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _KREF_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue