Commit 475cd853 authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Add __user/__kernel address space modifiers. When not

checking, these end up being no-ops, but they get enabled
by the type checker as special address_space attributes.
parent deeefec8
#ifndef __LINUX_COMPILER_H #ifndef __LINUX_COMPILER_H
#define __LINUX_COMPILER_H #define __LINUX_COMPILER_H
#ifdef __CHECKER__
#define __user __attribute__((address_space(1)))
#define __kernel /* default address space */
#else
#define __user
#define __kernel
#endif
#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) #if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
#define inline __inline__ __attribute__((always_inline)) #define inline __inline__ __attribute__((always_inline))
#define __inline__ __inline__ __attribute__((always_inline)) #define __inline__ __inline__ __attribute__((always_inline))
......
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