Skip to content

Commit

Permalink
Guard some of linux/compiler.h with #ifdef __KERNEL__
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed May 2, 2006
1 parent 2683e88 commit 4f79c3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ extern void __chk_io_ptr(void __iomem *);

#endif /* __ASSEMBLY__ */

#ifdef __KERNEL__
/*
* Allow us to mark functions as 'deprecated' and have gcc emit a nice
* warning for each use, in hopes of speeding the functions removal.
Expand Down Expand Up @@ -153,4 +154,5 @@ extern void __chk_io_ptr(void __iomem *);
#define __always_inline inline
#endif

#endif /* __KERNEL__ */
#endif /* __LINUX_COMPILER_H */

0 comments on commit 4f79c3f

Please sign in to comment.