Commit 20c99e82 authored by Ingo Molnar's avatar Ingo Molnar

tools/perf/build: Harmonize the style of the feature testcases

The various testcases used different styles, which was not really
visible as long as they hid in feature-tests.mak. Now that they
are out in the open make them prettier.

( Also delete the leftover, empty feature-tests.mak file. )

Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/n/tip-drDWk8xltndjdsespzjbhu6w@git.kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 1f7c645a
...@@ -11,4 +11,3 @@ int main(void) ...@@ -11,4 +11,3 @@ int main(void)
return 0; return 0;
} }
...@@ -12,4 +12,3 @@ int main(void) ...@@ -12,4 +12,3 @@ int main(void)
return 0; return 0;
} }
...@@ -5,5 +5,6 @@ ...@@ -5,5 +5,6 @@
int main(void) int main(void)
{ {
Dwarf *dbg = dwarf_begin(0, DWARF_C_READ); Dwarf *dbg = dwarf_begin(0, DWARF_C_READ);
return (long)dbg; return (long)dbg;
} }
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
int main(void) int main(void)
{ {
const char *version = gnu_get_libc_version(); const char *version = gnu_get_libc_version();
return (long)version; return (long)version;
} }
...@@ -5,5 +5,6 @@ extern int printf(const char *format, ...); ...@@ -5,5 +5,6 @@ extern int printf(const char *format, ...);
int main(void) int main(void)
{ {
printf("error message: %s\n", audit_errno_to_name(0)); printf("error message: %s\n", audit_errno_to_name(0));
return audit_open(); return audit_open();
} }
...@@ -13,4 +13,3 @@ int main(void) ...@@ -13,4 +13,3 @@ int main(void)
return 0; return 0;
} }
#include <libelf.h> #include <libelf.h>
#
int main(void) int main(void)
{ {
size_t dst; size_t dst;
return elf_getphdrnum(0, &dst); return elf_getphdrnum(0, &dst);
} }
#include <libelf.h> #include <libelf.h>
#
int main(void) int main(void)
{ {
Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0); Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0);
return (long)elf; return (long)elf;
} }
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
int main(void) int main(void)
{ {
Elf *elf = elf_begin(0, ELF_C_READ, 0); Elf *elf = elf_begin(0, ELF_C_READ, 0);
return (long)elf; return (long)elf;
} }
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
int main(void) int main(void)
{ {
numa_available(); numa_available();
return 0; return 0;
} }
#include <Python.h> #include <Python.h>
#
int main(void) int main(void)
{ {
Py_Initialize(); Py_Initialize();
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment