Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp348756ybk; Fri, 15 May 2020 02:17:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOklweESBvwethsc5Dqfbabh5i2VynXqnzSPoCQmksGnHFwbPfhyD7D3zzyz0Eh1TTnOqq X-Received: by 2002:a17:906:6055:: with SMTP id p21mr1877544ejj.316.1589534269494; Fri, 15 May 2020 02:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589534269; cv=none; d=google.com; s=arc-20160816; b=jXDTUKEFqz7PCL0MM+LXB0lmP061J8my/v9PSoAUNHCV8zCGTwd2h+GTa0LOQS9NUv z8a/qeKV4PJDTkhO3trmn/MIHkJKofeLAMjtnYFPJnr22g7mJckOVwMvCkOLPoj79WDh NilCmglVq3SwgIsMlBl4JOJRLgKgxaFZlxnIIjL/mzd6URKRp8k9NCfrlGH4dF8cPesr KTdYUhuQmULYYRY8G0GRAbpjXEQFS0miwPAdWL13Zzx0LgoHL3UmuOIpYr2u5/h5bzfE E92IflwgJjUkWugXbLzCfZfk/g3FA4/8S2c/38sCL2OsgLbvPU2EFGD+ulB+o8gMxRKZ myIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/5awcNeBjTNuGjgZ8wQMW9no+F30tdMR8rr0G98WOb4=; b=cxdvLhuiEqZQIvQziFbMe49cJNiu1FRTn6Be/DxpQ5BUp+azADTYrzB7GVs8SvJIhb SKglNIlBDqwrxK4XBRlSYoIRMlNPOsgpLr1UTWaRxPlNeywOEH/syrq1TXQZnkWycDzL esOPSU1yzVIPrR8Nk7F9rfBSNZV4LovGNaUJmbyM2lhWgvf4fjTf0C4jYeJt6wXGigCr jwdxZ3AvNwUb8PjXtxmS/8iga81VA7tJpl1RAZt596R2zjRgwvqA3ki+kQ2ARgZ6aF+g A19p7rbApFUtuYJiC8RGyRJycF/jDo1Hv2CyELXSJNKQA/OJbZdu6QR876Tia1ACqPPa Tz4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PUrrnF4F; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm8si755265edb.417.2020.05.15.02.17.25; Fri, 15 May 2020 02:17:49 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PUrrnF4F; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727958AbgEOJPr (ORCPT + 99 others); Fri, 15 May 2020 05:15:47 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:44526 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727837AbgEOJPq (ORCPT ); Fri, 15 May 2020 05:15:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589534145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/5awcNeBjTNuGjgZ8wQMW9no+F30tdMR8rr0G98WOb4=; b=PUrrnF4FKQSZxSw0csN8FDAqlNzENWf/jryaBSRXrbb5Od1yS9gd7G7+epLY36spfAVlPc d/FccOebp4UJhm+J5qiAyl0bSWgnpVuk4AhqxK5yWJussyyJDgwO78NZZsiZ1Yfk7hCRTt f/QtMO1C/nJCmYEi/2qMw2D70sFwHIo= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-325-t_m2kxuhMVmScts-aFHLug-1; Fri, 15 May 2020 05:15:43 -0400 X-MC-Unique: t_m2kxuhMVmScts-aFHLug-1 Received: by mail-qt1-f197.google.com with SMTP id z29so1753293qtj.5 for ; Fri, 15 May 2020 02:15:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/5awcNeBjTNuGjgZ8wQMW9no+F30tdMR8rr0G98WOb4=; b=E+7wPj6PWGUHnybzrz/pFHWh2h1EwtFjbbhxE8JTM3DiDSDfKMkjcAovyuwNgoeFn7 KtFutBTIfHW+JxSkgkC9P9eEneQ3+v8qmxLkhdNyjnekGNct7TbrVi0fNkMiY43EfniY RbPn+lj1bxaTdTog+6JJrlGpxa7sU7iMGw6VHWyCt/yzmawTyUQ4ZDvkg+QnzP4ufqih NA0nO7W+TGrXzrnEdQntV01yu0RFp6jv2EVNOcUw1GzFf35JJLzKspWv4RoL25L6xQIH s4qWDoyMx3nVPfp0uQCkwqSQAVM65nBesDngxM0cRTkSQIQSrQH1qreLiaXfv3ZTy2qz nHmQ== X-Gm-Message-State: AOAM533xzk1DFzBOoxYtGUmR1eHiuNwbw8gKYmQOYg3gAuU1uM8GEkra ROI3WUsc952HZ8S2WVrE080/gcCjEgfFsR5T7Unyo5BKKk6OPY6byvY2pwIvUMi0kCzG+ohbfLa Meqs1Zpi9D1wuAEC2Eu5H2YOmUtPrTbvSC1x5t2H2 X-Received: by 2002:ac8:380d:: with SMTP id q13mr2372094qtb.200.1589534142852; Fri, 15 May 2020 02:15:42 -0700 (PDT) X-Received: by 2002:ac8:380d:: with SMTP id q13mr2372075qtb.200.1589534142649; Fri, 15 May 2020 02:15:42 -0700 (PDT) MIME-Version: 1.0 References: <1588063937-5744-1-git-send-email-bhsharma@redhat.com> <20200428100745.GA15300@C02TD0UTHF1T.local> In-Reply-To: From: Bhupesh Sharma Date: Fri, 15 May 2020 14:45:29 +0530 Message-ID: Subject: Re: [PATCH] hw_breakpoint: Remove unused '__register_perf_hw_breakpoint' declaration To: Mark Rutland , Frederic Weisbecker , Ingo Molnar , Peter Zijlstra Cc: linux-arm-kernel , Linux Kernel Mailing List , Bhupesh SHARMA , Will Deacon , Catalin Marinas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, Frederic, Ingo On Thu, Apr 30, 2020 at 9:49 AM Bhupesh Sharma wrote: > > Hi Mark, > > Thanks for the review. > > On Tue, Apr 28, 2020 at 3:37 PM Mark Rutland wrote: > > > > Hi Bhupesh, > > > > On Tue, Apr 28, 2020 at 02:22:17PM +0530, Bhupesh Sharma wrote: > > > commit b326e9560a28 ("hw-breakpoints: Use overflow handler instead of > > > the event callback") removed '__register_perf_hw_breakpoint' function > > > usage and replaced it with 'register_perf_hw_breakpoint' function. > > > > > > Remove the left-over unused '__register_perf_hw_breakpoint' declaration > > > from 'hw_breakpoint.h' as well. > > > > > > Cc: Mark Rutland > > > Cc: Will Deacon > > > Cc: Catalin Marinas > > > Signed-off-by: Bhupesh Sharma > > > > This is generic code, so I'm a bit confused as to why you've sent it to > > us. I'd expect this to go via the perf core maintainers (cc'd). > > Oops, my bad. Seems my git patch sending script messed up while > picking up the perf maintainers (who should have been Cc'ed on the > patch) :( > > Thanks for adding them in the Cc list. > > Hi Peter, Frederic, Ingo - Kindly help review this patch and help > apply the patch (if suitable). Ping. Any comments on this patch? Thanks, Bhupesh > > FWIW, this looks sane to me, so: > > > > Acked-by: Mark Rutland > > > > Mark. > > > > > --- > > > include/linux/hw_breakpoint.h | 3 --- > > > 1 file changed, 3 deletions(-) > > > > > > diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h > > > index 6058c3844a76..fe1302da8e0f 100644 > > > --- a/include/linux/hw_breakpoint.h > > > +++ b/include/linux/hw_breakpoint.h > > > @@ -72,7 +72,6 @@ register_wide_hw_breakpoint(struct perf_event_attr *attr, > > > void *context); > > > > > > extern int register_perf_hw_breakpoint(struct perf_event *bp); > > > -extern int __register_perf_hw_breakpoint(struct perf_event *bp); > > > extern void unregister_hw_breakpoint(struct perf_event *bp); > > > extern void unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events); > > > > > > @@ -115,8 +114,6 @@ register_wide_hw_breakpoint(struct perf_event_attr *attr, > > > void *context) { return NULL; } > > > static inline int > > > register_perf_hw_breakpoint(struct perf_event *bp) { return -ENOSYS; } > > > -static inline int > > > -__register_perf_hw_breakpoint(struct perf_event *bp) { return -ENOSYS; } > > > static inline void unregister_hw_breakpoint(struct perf_event *bp) { } > > > static inline void > > > unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events) { } > > > -- > > > 2.7.4 > > > > >