projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa1f456
)
perf tools: Use __weak definition from linux/compiler.h
author
Rui Teng
<rui.teng@linux.vnet.ibm.com>
Thu, 28 Jul 2016 02:05:57 +0000
(10:05 +0800)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 23 Aug 2016 18:37:33 +0000
(15:37 -0300)
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>
tools/perf/util/header.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/util/header.c
b/tools/perf/util/header.c
index 8f0db4007282fabfe99fdcdc80de480d38e30510..85dd0db0a127995a725eade74a12e5da8569b80c 100644
(file)
--- 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;
}
This page took
0.026016 seconds
and
5
git commands to generate.