Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f79c3ff authored by David Woodhouse's avatar David Woodhouse
Browse files

Guard some of linux/compiler.h with #ifdef __KERNEL__

parent 2683e884
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -78,6 +78,7 @@ extern void __chk_io_ptr(void __iomem *);


#endif /* __ASSEMBLY__ */
#endif /* __ASSEMBLY__ */


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


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