Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp988462ybg; Mon, 1 Jun 2020 21:15:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt+AiO39SzcORS3OYhSVvENh5X+fQLB3Yrc6PGEsMwo402qCNcJWO42aoCS8sHeYtBw6QZ X-Received: by 2002:a17:906:4989:: with SMTP id p9mr23010967eju.417.1591071302073; Mon, 01 Jun 2020 21:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591071302; cv=none; d=google.com; s=arc-20160816; b=beMH/qy0xTTsvMdOfb2GI2k774yW872+1fFrKXAgt1qm+tZ5RzVWipqpSYCjzP2Y8s IoRDWjXPl87d4ZWSVDydWqdSKBA672T7oTS3CwOGxWyHb3xI+m4vyIJ+qLhtXQYe4cfs O6bcRn6ziWXN0ZrB1gQhy1uVWlcRXsEO6AgTd4x47t5NIQA0Mr/5aXfBYOi9DARFPjsp 7un3YlYfdprDwQu9kwjWdh0hq1U78wiocUABWL2M/NruETopamugTCo2OH0z/qANteKY 04DIRzMPxW4G1dusGh+mIYIsaic140/Za3Fc2d5wVSfm3vINgnQdfrMCEkP677sQ0Jbc yC+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ioIm+B6+UPerJ7grWuRy6gxDav3RLBCDM4yoahI5eVM=; b=HwuqoDi5t7ZJzqQinviRx77xTKl4lxCh3pupmi5FwsapF+1gev2w+V5mH5fByUf47O dZA0VCRuNgcd9jSvFwtARslm/2qb69XrRV6TxyrSidfs6KQypzQ700IX+TteD/xhjudW ddJJ9WMYUzRSrL2JTWQ/lVYgAmky4jny8NLR9Rr5xLyLcYY2ALTIQ8r31M36peUV3Xuy KrbE7BsZ9oCJYITN/Dg+f6VYQzKqQ6Tf1OIiNHp4lExi3wgg0x9xe+A5oq+QN2Z2bzkm i4tE444FlKktHUmsTv0cxzeHF57JChPduPyOTSYpD3vFWy8cVtYppBsQL2rV2dZ54B0X PSbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr12si1032235ejc.352.2020.06.01.21.14.39; Mon, 01 Jun 2020 21:15:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726112AbgFBEMs (ORCPT + 99 others); Tue, 2 Jun 2020 00:12:48 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:8236 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbgFBEMs (ORCPT ); Tue, 2 Jun 2020 00:12:48 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05243cGU128488; Tue, 2 Jun 2020 00:12:27 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31c53yyxdp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 00:12:27 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05243cip128459; Tue, 2 Jun 2020 00:12:27 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 31c53yyxd9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 00:12:26 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05240nnL022718; Tue, 2 Jun 2020 04:12:25 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma05fra.de.ibm.com with ESMTP id 31bf482464-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 04:12:24 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0524CLrS65602010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Jun 2020 04:12:22 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DDFCB11C050; Tue, 2 Jun 2020 04:12:21 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5470F11C04A; Tue, 2 Jun 2020 04:12:19 +0000 (GMT) Received: from bangoria.ibmuc.com (unknown [9.199.55.113]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 2 Jun 2020 04:12:19 +0000 (GMT) From: Ravi Bangoria To: mpe@ellerman.id.au Cc: ravi.bangoria@linux.ibm.com, mikey@neuling.org, apopple@linux.ibm.com, paulus@samba.org, npiggin@gmail.com, christophe.leroy@c-s.fr, naveen.n.rao@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] hw_breakpoint: Fix build warnings with clang Date: Tue, 2 Jun 2020 09:42:08 +0530 Message-Id: <20200602041208.128913-1-ravi.bangoria@linux.ibm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-02_04:2020-06-01,2020-06-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 mlxlogscore=985 cotscore=-2147483648 mlxscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006020020 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kbuild test robot reported few build warnings with hw_breakpoint code when compiled with clang[1]. Fix those. [1]: https://lore.kernel.org/linuxppc-dev/202005192233.oi9CjRtA%25lkp@intel.com/ Reported-by: kbuild test robot Signed-off-by: Ravi Bangoria --- Note: Prepared on top of powerpc/next. arch/powerpc/include/asm/hw_breakpoint.h | 3 --- include/linux/hw_breakpoint.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/hw_breakpoint.h b/arch/powerpc/include/asm/hw_breakpoint.h index f42a55eb77d2..cb424799da0d 100644 --- a/arch/powerpc/include/asm/hw_breakpoint.h +++ b/arch/powerpc/include/asm/hw_breakpoint.h @@ -70,9 +70,6 @@ extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, unsigned long val, void *data); int arch_install_hw_breakpoint(struct perf_event *bp); void arch_uninstall_hw_breakpoint(struct perf_event *bp); -int arch_reserve_bp_slot(struct perf_event *bp); -void arch_release_bp_slot(struct perf_event *bp); -void arch_unregister_hw_breakpoint(struct perf_event *bp); void hw_breakpoint_pmu_read(struct perf_event *bp); extern void flush_ptrace_hw_breakpoint(struct task_struct *tsk); diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 6058c3844a76..521481f0d320 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h @@ -80,6 +80,10 @@ extern int dbg_reserve_bp_slot(struct perf_event *bp); extern int dbg_release_bp_slot(struct perf_event *bp); extern int reserve_bp_slot(struct perf_event *bp); extern void release_bp_slot(struct perf_event *bp); +extern int hw_breakpoint_weight(struct perf_event *bp); +extern int arch_reserve_bp_slot(struct perf_event *bp); +extern void arch_release_bp_slot(struct perf_event *bp); +extern void arch_unregister_hw_breakpoint(struct perf_event *bp); extern void flush_ptrace_hw_breakpoint(struct task_struct *tsk); -- 2.26.2