]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - tools/perf/util/include/linux/compiler.h
tools/perf: Turn strlcpy() into a __weak function
[mirror_ubuntu-zesty-kernel.git] / tools / perf / util / include / linux / compiler.h
CommitLineData
5a116dd2
FW
1#ifndef _PERF_LINUX_COMPILER_H_
2#define _PERF_LINUX_COMPILER_H_
3
4#ifndef __always_inline
7a10822a 5# define __always_inline inline __attribute__((always_inline))
5a116dd2 6#endif
7a10822a 7
5a116dd2 8#define __user
7a10822a 9
195bcbf5 10#ifndef __attribute_const__
7a10822a 11# define __attribute_const__
195bcbf5 12#endif
5a116dd2 13
1d037ca1 14#ifndef __maybe_unused
7a10822a
IM
15# define __maybe_unused __attribute__((unused))
16#endif
17
18#ifndef __packed
19# define __packed __attribute__((__packed__))
1d037ca1 20#endif
618038df 21
86d5a70c 22#ifndef __force
7a10822a 23# define __force
86d5a70c
IT
24#endif
25
fb1c9185
IM
26#ifndef __weak
27# define __weak __attribute__((weak))
28#endif
29
5a116dd2 30#endif