diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2017-06-16 14:39:15 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-06-19 18:27:06 +0000 |
| commit | 9dd4ca470e03334f95cc96529ba090921aac8eab (patch) | |
| tree | 47b88e8ccc64b296973ec2786d43b40ce64aa0c9 /tools/perf/tests/bp_signal_overflow.c | |
| parent | perf tools: Use __maybe_unused consistently (diff) | |
| download | kernel-9dd4ca470e03334f95cc96529ba090921aac8eab.tar.gz kernel-9dd4ca470e03334f95cc96529ba090921aac8eab.zip | |
tools: Adopt noinline from kernel sources
To have a more compact way to ask the compiler not to inline a function
and to make tools/ source code look like kernel code.
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: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/tests/bp_signal_overflow.c')
| -rw-r--r-- | tools/perf/tests/bp_signal_overflow.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/tests/bp_signal_overflow.c b/tools/perf/tests/bp_signal_overflow.c index 89f92fa67cc4..3b1ac6f31b15 100644 --- a/tools/perf/tests/bp_signal_overflow.c +++ b/tools/perf/tests/bp_signal_overflow.c @@ -28,8 +28,7 @@ static int overflows; -__attribute__ ((noinline)) -static int test_function(void) +static noinline int test_function(void) { return time(NULL); } |
