diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 6d039ea3..39df1f16 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -10,6 +10,10 @@ # define __always_inline inline __attribute__((always_inline)) #endif +#ifndef __attribute_const__ +#define __attribute_const__ __attribute__((__const__)) +#endif + #ifdef __ANDROID__ /* * FIXME: Big hammer to get rid of tons of: