From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEB9AC4321E for ; Fri, 2 Dec 2022 11:17:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233064AbiLBLR5 (ORCPT ); Fri, 2 Dec 2022 06:17:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232966AbiLBLRx (ORCPT ); Fri, 2 Dec 2022 06:17:53 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9AEA31DFF for ; Fri, 2 Dec 2022 03:17:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B255BB80955 for ; Fri, 2 Dec 2022 11:17:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF7E0C433C1; Fri, 2 Dec 2022 11:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669979869; bh=0LaTTtWUlH8+3BEn/MEriuJPwoMky2IVcCMbgBew5v4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h69HEr7OxyY9phIFTR1Oam/DBJ8YTno17K7RL6afgDtKXxyMEU/RrWnTN/+iWcget yjkmuVlxKFvxpCigEAq4B9OgJlaCi6xntbtEEC0YQXirkRMa1vVIfsk00zrIeDu9eK 900FPdby42Cbr6tSmgwFYTqkuebjY04eF8k/+anCpLauadOCMzkyYoOP6PWWMakUz6 ytwoPkcvfD3MY/K1meaEyoEYkuOnCqPA5moI3fxpu7Z00eHDUceM4qxr40tckSdo46 DOM5Yhyy4fJN/y4c9tNQ9BVRn6/zqhxIKXKgTZaYqx4rnoHIoZu6ThXBV+SvP6CleT CqrHF/qRTE1Lw== From: Will Deacon To: Anshuman Khandual , linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] arm_pmu: Drop redundant armpmu->map_event() in armpmu_event_init() Date: Fri, 2 Dec 2022 11:17:40 +0000 Message-Id: <166997610412.2820545.3765693672381497084.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221202015611.338499-1-anshuman.khandual@arm.com> References: <20221202015611.338499-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Dec 2022 07:26:11 +0530, Anshuman Khandual wrote: > __hw_perf_event_init() already calls armpmu->map_event() callback, and also > returns its error code including -ENOENT, along with a debug callout. Hence > an additional armpmu->map_event() check for -ENOENT is redundant. > > Applied to will (for-next/perf), thanks! [1/1] arm_pmu: Drop redundant armpmu->map_event() in armpmu_event_init() https://git.kernel.org/will/c/4361251cef46 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev