From patchwork Tue Nov 15 20:28:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 20540 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2927413wru; Tue, 15 Nov 2022 12:29:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mHKE/mAk897T9Yy2cpwVmJHF6o95XUOY2OE14OEQ7+LlfuJa2KnYuwJJjkMO0fgisw1u6 X-Received: by 2002:a17:90a:4e4a:b0:211:55d8:4cdd with SMTP id t10-20020a17090a4e4a00b0021155d84cddmr97963pjl.133.1668544164037; Tue, 15 Nov 2022 12:29:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668544164; cv=none; d=google.com; s=arc-20160816; b=bENPZIuQSD/NPt3QuHpIcKWN89nP+bVRBz48z6fV+coP1JVpoiXDPPGW2gOLGin3dF qnWW3YvqGYwhoYO+mDTT6RQqvxCIEDXF75fXTCFWHdZvASZyzYBoikMiVG/Bujt6Na1D irb0gZ3H8Gx/mhgUfoSDoifc+NOW5VlqRo85nntA2eXBDw3i4iLmpb/ZHKi9Izhr7XVU n2obf0LxdyY0CbWOZgkuTQh0F0AFF1BXdbFlW/znNEDx0HE2eptVVPyyvpJM0P0AmnNe 5mlEu+fWkqSsS22GZ8h2GFC4yhA+1N27owOlCbQNgG22jnzRw0txYxAgLQwqiXx36XFU QnZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=96srhAwXJ3UQoCsDoL5fPAIasWFtP8WUr4N49zZJa6E=; b=bLVTygWKyf7iHw2BKZZp9b6fkMXcUT1T5aEHCPODBktBVpwCUnWhpo4sJ43QQ+0daC z2spo9hck3DxG40rIQR8MA8si5XbhNcBU5TmEMdYmQqwEy1m+B3TkDfAKExG/MPRdp9S yglcVGLgmRajLzHcNwBDlc3gUgWQ0ZNrFitCxVwPsnACC2Dz8yxVg6FI2i0vrLdcbJc7 sKi/7abk7HRvQBXzHUWyHaIT6t+6JlK3nqsZHUDNB+7zPgxVrtWnU/TpLvnNz68QeUzC cFcC4sIYwcHiL6Nig3JCZYTGzhyVUf597tYliRjIaUYzrUPi+ajcp4H6G2fbqhIC7VN8 JRJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RdgXZ0TA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=jvgBZ08Z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a056a00151300b005712c9c1134si14316282pfu.192.2022.11.15.12.29.10; Tue, 15 Nov 2022 12:29:24 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RdgXZ0TA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=jvgBZ08Z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231794AbiKOU2q (ORCPT + 99 others); Tue, 15 Nov 2022 15:28:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbiKOU2i (ORCPT ); Tue, 15 Nov 2022 15:28:38 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C936259; Tue, 15 Nov 2022 12:28:37 -0800 (PST) Message-ID: <20221115202117.098759370@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668544116; 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: references:references; bh=96srhAwXJ3UQoCsDoL5fPAIasWFtP8WUr4N49zZJa6E=; b=RdgXZ0TAWxdPBxv55AEPOK9e0UfkZQLA9JjjZ7uvLWUZjHD6wBxpnhDJaWs8kClPVPzwOB O7JaVb4WrPrMxeq0aC7oAjKrVz8kXSSiRY9BcUD8GSaxxWBjumGJz3koA4RGoO1R/gbLPJ b1ov7R8K68Nrx5tnApOrGySSwYPXObjONsZmUFiKtf6CRLrjSKO7Na7u3vymGQVFrSS0F6 5tdQbyW06tHApT51YNCrM9M1Nhj3PxJj0C0pw3CzTCsDgZ6nzv42p4gxdZa9zuouuDsYls 2hQtgdQqp2z3vE2zFkpIf9e8ZTsVBdpeY6LG5OU2vHWdn5j103iG8mlKHxqxoA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668544116; 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: references:references; bh=96srhAwXJ3UQoCsDoL5fPAIasWFtP8WUr4N49zZJa6E=; b=jvgBZ08ZC6v9uKLQdG4akvwUOYV8XuypmessNrW3f8c1pxr4YFGpVHbLj1gXiPRFcdIuOh jAjBznVk4m9GKmBw== From: Thomas Gleixner To: LKML Cc: Linus Torvalds , Steven Rostedt , Anna-Maria Behnsen , Peter Zijlstra , Stephen Boyd , Guenter Roeck , Andrew Morton , Julia Lawall , Marc Zyngier , Arnd Bergmann , Viresh Kumar , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: [patch 02/15] clocksource/drivers/arm_arch_timer: Do not use timer namespace for timer_shutdown() function References: <20221115195802.415956561@linutronix.de> MIME-Version: 1.0 Date: Tue, 15 Nov 2022 21:28:35 +0100 (CET) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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?1749595365296351064?= X-GMAIL-MSGID: =?utf-8?q?1749595365296351064?= 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. Signed-off-by: Steven Rostedt (Google) Signed-off-by: Thomas Gleixner Tested-by: Guenter Roeck Reviewed-by: Guenter Roeck Acked-by: Marc Zyngier Link: https://lkml.kernel.org/r/20221106212702.002251651@goodmis.org Link: https://lore.kernel.org/all/20221105060155.409832154@goodmis.org/ Link: https://lore.kernel.org/r/20221110064146.981725531@goodmis.org --- 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,