Commit 92a16de9 authored by Linus Torvalds's avatar Linus Torvalds

Add sparse __safe annotation

parent 6ff18bff
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
#ifdef __CHECKER__ #ifdef __CHECKER__
# define __user __attribute__((noderef, address_space(1))) # define __user __attribute__((noderef, address_space(1)))
# define __kernel /* default address space */ # define __kernel /* default address space */
# define __safe __attribute__((safe))
#else #else
# define __user # define __user
# define __kernel # define __kernel
# define __safe
#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