compiler.h: Undef before redefining __attribute_const__

This is required to avoid warnings like
util/include/linux/compiler.h:8:0: error: "__attribute_const__" redefined [-Werror]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2012-01-05 11:42:35 -08:00 committed by Bruce Ashfield
parent 908bcc4a78
commit 3ed85f3775

View File

@ -38,6 +38,7 @@
#define __always_inline inline
#endif
#undef __user
#define __user
#define __rcu
#define __read_mostly