Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1451619 > unrolled thread
| Started by | Rui Teng <rui.teng@linux.vnet.ibm.com> |
|---|---|
| First post | 2016-07-28 04:10 +0200 |
| Last post | 2016-07-28 04:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] perf: Use __weak definition from <linux/compiler.h> Rui Teng <rui.teng@linux.vnet.ibm.com> - 2016-07-28 04:10 +0200
| From | Rui Teng <rui.teng@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-07-28 04:10 +0200 |
| Subject | [PATCH 2/2] perf: Use __weak definition from <linux/compiler.h> |
| Message-ID | <rZIVP-7X5-1@gated-at.bofh.it> |
Replace __attribute__((weak)) to __weak definition
Signed-off-by: Rui Teng <rui.teng@linux.vnet.ibm.com>
---
tools/perf/util/header.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 8d76d55..576addd 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -830,8 +830,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;
}
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web