From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759095AbcG1CGZ (ORCPT ); Wed, 27 Jul 2016 22:06:25 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:11061 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758794AbcG1CGH (ORCPT ); Wed, 27 Jul 2016 22:06:07 -0400 X-IBM-Helo: d01dlp01.pok.ibm.com X-IBM-MailFrom: rui.teng@linux.vnet.ibm.com From: Rui Teng To: linux-kernel@vger.kernel.org Cc: mingo@redhat.com, alexander.shishkin@linux.intel.com, peterz@infradead.org, Arnaldo Carvalho de Melo , Rui Teng Subject: [PATCH 2/2] perf: Use __weak definition from Date: Thu, 28 Jul 2016 10:05:57 +0800 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469671557-2256-1-git-send-email-rui.teng@linux.vnet.ibm.com> References: <1469671557-2256-1-git-send-email-rui.teng@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16072802-0056-0000-0000-000000E70BBA X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005534; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000177; SDB=6.00736420; UDB=6.00345839; IPR=6.00509013; BA=6.00004625; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012091; XFM=3.00000011; UTC=2016-07-28 02:06:06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16072802-0057-0000-0000-000005013C3D Message-Id: <1469671557-2256-2-git-send-email-rui.teng@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-07-28_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1607280021 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace __attribute__((weak)) to __weak definition Signed-off-by: Rui Teng --- 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