summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorRui Teng <rui.teng@linux.vnet.ibm.com>2016-07-28 02:05:57 (GMT)
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-08-23 18:37:33 (GMT)
commit11d8f870c8eb8dd41ade688fbad6946ad69243fe (patch)
treea721b62979f1e41fd2ddbb4c256ca1373174cb07 /tools/perf
parentfa1f456592347c6f40c9d37ea407b029fda5324a (diff)
downloadlinux-11d8f870c8eb8dd41ade688fbad6946ad69243fe.tar.xz
perf tools: Use __weak definition from linux/compiler.h
Replace __attribute__((weak)) with __weak definition Signed-off-by: Rui Teng <rui.teng@linux.vnet.ibm.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1469671557-2256-2-git-send-email-rui.teng@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/header.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 8f0db40..85dd0db 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -828,8 +828,7 @@ static int write_group_desc(int fd, struct perf_header *h __maybe_unused,
* default get_cpuid(): nothing gets recorded
* actual implementation must be in arch/$(ARCH)/util/header.c
*/
-int __attribute__ ((weak)) get_cpuid(char *buffer __maybe_unused,
- size_t sz __maybe_unused)
+int __weak get_cpuid(char *buffer __maybe_unused, size_t sz __maybe_unused)
{
return -1;
}