From: Rui Teng <rui.teng@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: mingo@redhat.com, alexander.shishkin@linux.intel.com,
peterz@infradead.org, Arnaldo Carvalho de Melo <acme@kernel.org>,
Rui Teng <rui.teng@linux.vnet.ibm.com>
Subject: [PATCH 2/2] perf: Use __weak definition from <linux/compiler.h>
Date: Thu, 28 Jul 2016 10:05:57 +0800 [thread overview]
Message-ID: <1469671557-2256-2-git-send-email-rui.teng@linux.vnet.ibm.com> (raw)
In-Reply-To: <1469671557-2256-1-git-send-email-rui.teng@linux.vnet.ibm.com>
Replace __attribute__((weak)) to __weak definition
Signed-off-by: Rui Teng <rui.teng@linux.vnet.ibm.com>
---
| 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--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
next prev parent reply other threads:[~2016-07-28 2:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 2:05 [PATCH 1/2] perf: Fix errors reported by checkpatch.pl scripts Rui Teng
2016-07-28 2:05 ` Rui Teng [this message]
2016-08-24 9:24 ` [tip:perf/core] perf tools: Use __weak definition from linux/compiler.h tip-bot for Rui Teng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1469671557-2256-2-git-send-email-rui.teng@linux.vnet.ibm.com \
--to=rui.teng@linux.vnet.ibm.com \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®