Commit 6df3af84 authored by Linus Torvalds's avatar Linus Torvalds

Add fake '__builtin_warning()' for the gcc case.

Allows us to do compile-time sparse warnings of our own.
parent d78d2844
...@@ -17,6 +17,7 @@ extern void __chk_io_ptr(void __iomem *); ...@@ -17,6 +17,7 @@ extern void __chk_io_ptr(void __iomem *);
# define __iomem # define __iomem
# define __chk_user_ptr(x) (void)0 # define __chk_user_ptr(x) (void)0
# define __chk_io_ptr(x) (void)0 # define __chk_io_ptr(x) (void)0
#define __builtin_warning(x, ...) (1)
#endif #endif
#ifdef __KERNEL__ #ifdef __KERNEL__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment