[tip:,timers/core] clocksource/drivers/exynos_mct: Explicitly return 0 for shared timer
Message ID | 168250035379.404.8034849977129225526.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp110217vqo; Wed, 26 Apr 2023 02:25:36 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKxbbdo0+zgmJq5j8b7oz+bxGiZsJ0V2MPmsbZL1UHY4n1eLzGrItWm6u//A7lBUj03tdS X-Received: by 2002:a17:902:f28d:b0:1a1:b440:3773 with SMTP id k13-20020a170902f28d00b001a1b4403773mr18891398plc.27.1682501135765; Wed, 26 Apr 2023 02:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682501135; cv=none; d=google.com; s=arc-20160816; b=mS0HKvZLWXgRGcV3ZrC7np1Z3E3ml+MGtBMb6axVrbBng2xJnstM3uIaj6o9eTXd4K YhRPTEjAsI+UzcJue6eHlRr/CGsJYiJGV+mSSuBhTG0zyq/l8mBNDGz7ZPkycB/tecYE 69fruAW/H5922QJdYKLt5PBbvcGAeedxA+hESikhrqkggRyVV/aZh/WCN5niX+MrsFIY +8OqQRZd7FZ4XWlgF8NxK7QbEiMI/JlhMQrwIfEJw3xd9NXSu20WYAWEYnpVymtpPMBW MpxCKY6ullw9yuuaW+qwcwQPkh0onfd5ZdsCRKMIcBnOudEULFQeLhS+80DOO5N5NXxB w/vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=mRL5IJ3LvDMVfAYC6WdsWyyoMjS8QGI98YOz7VpmQSQ=; b=MAnZbU/wGK7XJfbCqQR0UDFP0wImETHiQUKKSNDOtacbXyCxA69/leJ1TJ4XXUH5Iw r8bqbkshqrXm7SXAZvLobudKKrwdmbXuLikHy+H3xH7cql5YnzT7uielkaUK4XRM7+Xk 7Q9VtBNZczl8gK/ZChnykYQmE57Z05K4MlI4ihYiysZFRilR4JiutQprlS6+qFc7ieLO DoaeSdcsWNLxfig8r6DD9wstmKNZMBB1VNdnSOp+1l1vuXNY/N9EGx4+901Qlj5H0fVF 6msxv02hm1oA68RR1YfHHjByr2987Sik/rpS6WLQEs1gXoxSc8UODehp27/Gxor+F5XU Ut/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jerJTNNt; dkim=neutral (no key) header.i=@linutronix.de; 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 jy6-20020a17090342c600b0019a96125cd7si15372637plb.332.2023.04.26.02.25.22; Wed, 26 Apr 2023 02:25:35 -0700 (PDT) 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=jerJTNNt; dkim=neutral (no key) header.i=@linutronix.de; 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 S240347AbjDZJOk (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Wed, 26 Apr 2023 05:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240087AbjDZJMj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Apr 2023 05:12:39 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 448A04498; Wed, 26 Apr 2023 02:12:36 -0700 (PDT) Date: Wed, 26 Apr 2023 09:12:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682500354; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mRL5IJ3LvDMVfAYC6WdsWyyoMjS8QGI98YOz7VpmQSQ=; b=jerJTNNtNMWGytAmrZZyB3vjldG7IJ/ILpl1hi8ofttnxbgN6xXI5WD0ULcKcZC6Wgn1E+ j01rah3FAWrQcqKdoCDTRaeFuk2iJK894w30mLXxAnt5Da7A96DNDZ0rzxGVd9I+tTcD57 +UkDUdCVOfbAksmIf5EqSL+V8xHxHK1J5eC3BNNj1MKAFOR870EBvaaIWeQmu+vMMCiWdh hsqTHkKj0EOUbxLTtv7W1FwrWInylRb1VVE+GDzH/nHKUATMYk/5t/lU36JMqmuYuJgKMz ART9BveDZnRxHspGdNR133m9Mm2SgjA+roUwmLffimOaJWey+/x+hMQYNPgLSA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682500354; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mRL5IJ3LvDMVfAYC6WdsWyyoMjS8QGI98YOz7VpmQSQ=; b=/HOeLQduLTG3WMBbf9ZhqjJoY5uhMYtcba7K8wDD8j7HZv1wy0zNqU6WeFYqppdB+GFc3A Q4jQWIUBhc7/KhBg== From: "tip-bot2 for Krzysztof Kozlowski" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/exynos_mct: Explicitly return 0 for shared timer Cc: kernel test robot <lkp@intel.com>, Dan Carpenter <error27@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Vincent Whitchurch <vincent.whitchurch@axis.com>, Alim Akhtar <alim.akhtar@samsung.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230403094017.9556-1-krzysztof.kozlowski@linaro.org> References: <20230403094017.9556-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Message-ID: <168250035379.404.8034849977129225526.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764230310602169208?= X-GMAIL-MSGID: =?utf-8?q?1764230310602169208?= |
Series |
[tip:,timers/core] clocksource/drivers/exynos_mct: Explicitly return 0 for shared timer
|
|
Commit Message
tip-bot2 for Thomas Gleixner
April 26, 2023, 9:12 a.m. UTC
The following commit has been merged into the timers/core branch of tip: Commit-ID: fd3f088f35f610a7ee3045b7d172b362342e43c6 Gitweb: https://git.kernel.org/tip/fd3f088f35f610a7ee3045b7d172b362342e43c6 Author: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> AuthorDate: Mon, 03 Apr 2023 11:40:17 +02:00 Committer: Daniel Lezcano <daniel.lezcano@linaro.org> CommitterDate: Mon, 24 Apr 2023 16:56:13 +02:00 clocksource/drivers/exynos_mct: Explicitly return 0 for shared timer For a shared timers, the mct_init_dt() should not initialize the clock even with global comparator. This is not an error, thus the function should simply return 0, not 'ret'. This also fixes smatch warning: drivers/clocksource/exynos_mct.c:635 mct_init_dt() warn: missing error code? 'ret' Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <error27@gmail.com> Link: https://lore.kernel.org/r/202304021446.46XVKag0-lkp@intel.com/ Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230403094017.9556-1-krzysztof.kozlowski@linaro.org --- drivers/clocksource/exynos_mct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index bfd6009..ef8cb1b 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -682,7 +682,7 @@ static int __init mct_init_dt(struct device_node *np, unsigned int int_type) * processor cannot use the global comparator. */ if (frc_shared) - return ret; + return 0; return exynos4_clockevent_init(); }