mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
tools include compiler-gcc: Add __pure attribute helper
Adopt it from the kernel sources, will be used soon. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
789e465058
commit
6e1690c4c0
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@
|
|||
/* &a[0] degrades to a pointer: a different type from an array */
|
||||
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
|
||||
|
||||
#ifndef __pure
|
||||
#define __pure __attribute__((pure))
|
||||
#endif
|
||||
#define noinline __attribute__((noinline))
|
||||
#ifndef __packed
|
||||
#define __packed __attribute__((packed))
|
||||
|
|
|
|||
Loading…
Reference in a new issue