From patchwork Sun Nov 6 23:30:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 16206 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1730346wru; Sun, 6 Nov 2022 15:49:06 -0800 (PST) X-Google-Smtp-Source: AMsMyM6haWrfQ8AU6bE6AgNsFALOLNAvX/oDkT9D04lWrU8MohEImv/PFsrrbnPxS5SgSrG7LLEV X-Received: by 2002:a17:906:4717:b0:7ad:c606:349f with SMTP id y23-20020a170906471700b007adc606349fmr39052800ejq.214.1667778546372; Sun, 06 Nov 2022 15:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667778546; cv=none; d=google.com; s=arc-20160816; b=R9Czn30UKNdzWjOg3YjK4PhM0KbYz7K0G5VLgkYw+Z09xyIPPu2biqAo9YAEhzCZZ2 2yGvkHG2VbwaVC3bGzor9eSiEqRyXlmW47i12u+SXVj9UP6/ZYauSDHkUSZsuP+aQCCp eCYcvM5CKD8GCkIJlOj+HiYNupzxdXzKF/uvrOM9vxfOAO3fsc6ipE0WtoPwXMMu7Kyg N/3LmwpjUQtl//hM5QNfg065aLxBz/SNRsbUoPLnThye7i5fqH/fuDdZ0pyldbszBhVc aIre2TFwOrP1viaZIiAX3W2kTPDGpyFo5WOs8pPnuPrUvPQUXd2B4nuyaWGh9I9WcJhT 3QMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id; bh=USIGGnTLcfHeRDUrQSyUYnJHzLQZVm2DPknBnEyXSfA=; b=zD73IzkmlSe0yCRs1sSOnLRddJwHvUmIctLWUSxT1JvXmLFhhldy60ilkQnnJfsUa9 pkLWNONODb+5lbv1igzMXrBHEH9ciBdd15BlTlK7u1Ts+oLbLf+iABlArFM3h8GvH8H2 drNafzY46VyU0fM9tTjMYivLRLr2HIEkxn0uwiq2UFO40sg0WwU3VFl8mnKsdDzCVV+1 rGZDCMySxxisN3eyNEzahNp+mdxPEgUQQOmuegpdMC5fKdNZumN1f2h6o4m47cEMX5y4 k3+bB89o+y3ThqHK/o2vjehAntjqTXbK5968FcR0oPIr3Vy9JxpZelpjOQuP9EkjhVjH pl6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm21-20020a0564020b1500b00462f4ea167esi7616011edb.315.2022.11.06.15.48.41; Sun, 06 Nov 2022 15:49:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230241AbiKFXeN (ORCPT + 99 others); Sun, 6 Nov 2022 18:34:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbiKFXeF (ORCPT ); Sun, 6 Nov 2022 18:34:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0A88D117 for ; Sun, 6 Nov 2022 15:34:04 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3A26360DFB for ; Sun, 6 Nov 2022 23:34:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9658BC43470; Sun, 6 Nov 2022 23:34:03 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.96) (envelope-from ) id 1orp9u-008UPY-0i; Sun, 06 Nov 2022 18:34:34 -0500 Message-ID: <20221106233434.059512224@goodmis.org> User-Agent: quilt/0.66 Date: Sun, 06 Nov 2022 18:30:39 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , Julia Lawall , Mark Rutland , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, Marc Zyngier Subject: [for-linus][PATCH 2/5] clocksource/drivers/arm_arch_timer: Do not use timer namespace for timer_shutdown() function References: <20221106233037.815236769@goodmis.org> MIME-Version: 1.0 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748792557119680056?= X-GMAIL-MSGID: =?utf-8?q?1748792557119680056?= From: "Steven Rostedt (Google)" A new "shutdown" timer state is being added to the generic timer code. One of the functions to change the timer into the state is called "timer_shutdown()". This means that there can not be other functions called "timer_shutdown()" as the timer code owns the "timer_*" name space. Rename timer_shutdown() to arch_timer_shutdown() to avoid this conflict. Link: https://lkml.kernel.org/r/20221106212702.002251651@goodmis.org Link: https://lore.kernel.org/all/20221105060155.409832154@goodmis.org/ Cc: Mark Rutland Cc: Linus Torvalds Cc: Stephen Boyd Cc: Anna-Maria Gleixner Cc: Andrew Morton Cc: Julia Lawall Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: linux-arm-kernel@lists.infradead.org Acked-by: Marc Zyngier Reviewed-by: Guenter Roeck Tested-by: Guenter Roeck Signed-off-by: Steven Rostedt (Google) --- drivers/clocksource/arm_arch_timer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index a7ff77550e17..9c3420a0d19d 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -687,8 +687,8 @@ static irqreturn_t arch_timer_handler_virt_mem(int irq, void *dev_id) return timer_handler(ARCH_TIMER_MEM_VIRT_ACCESS, evt); } -static __always_inline int timer_shutdown(const int access, - struct clock_event_device *clk) +static __always_inline int arch_timer_shutdown(const int access, + struct clock_event_device *clk) { unsigned long ctrl; @@ -701,22 +701,22 @@ static __always_inline int timer_shutdown(const int access, static int arch_timer_shutdown_virt(struct clock_event_device *clk) { - return timer_shutdown(ARCH_TIMER_VIRT_ACCESS, clk); + return arch_timer_shutdown(ARCH_TIMER_VIRT_ACCESS, clk); } static int arch_timer_shutdown_phys(struct clock_event_device *clk) { - return timer_shutdown(ARCH_TIMER_PHYS_ACCESS, clk); + return arch_timer_shutdown(ARCH_TIMER_PHYS_ACCESS, clk); } static int arch_timer_shutdown_virt_mem(struct clock_event_device *clk) { - return timer_shutdown(ARCH_TIMER_MEM_VIRT_ACCESS, clk); + return arch_timer_shutdown(ARCH_TIMER_MEM_VIRT_ACCESS, clk); } static int arch_timer_shutdown_phys_mem(struct clock_event_device *clk) { - return timer_shutdown(ARCH_TIMER_MEM_PHYS_ACCESS, clk); + return arch_timer_shutdown(ARCH_TIMER_MEM_PHYS_ACCESS, clk); } static __always_inline void set_next_event(const int access, unsigned long evt,