提交 11d8f870 编写于 作者: R Rui Teng 提交者: Arnaldo Carvalho de Melo

perf tools: Use __weak definition from linux/compiler.h

Replace __attribute__((weak)) with __weak definition
Signed-off-by: NRui 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.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 fa1f4565
...@@ -828,8 +828,7 @@ static int write_group_desc(int fd, struct perf_header *h __maybe_unused, ...@@ -828,8 +828,7 @@ static int write_group_desc(int fd, struct perf_header *h __maybe_unused,
* default get_cpuid(): nothing gets recorded * default get_cpuid(): nothing gets recorded
* actual implementation must be in arch/$(ARCH)/util/header.c * actual implementation must be in arch/$(ARCH)/util/header.c
*/ */
int __attribute__ ((weak)) get_cpuid(char *buffer __maybe_unused, int __weak get_cpuid(char *buffer __maybe_unused, size_t sz __maybe_unused)
size_t sz __maybe_unused)
{ {
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册