Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp501449rwr; Wed, 26 Apr 2023 02:18:10 -0700 (PDT) X-Google-Smtp-Source: AKy350aScedBRUJRAPlzRLuxtDHqXtd/rZo4jUptaxW+oaRhPKnX4B+hXYFWWZ/esHjlqB5eCa6H X-Received: by 2002:a17:902:ecd1:b0:1a5:2e19:bc40 with SMTP id a17-20020a170902ecd100b001a52e19bc40mr26499862plh.26.1682500690054; Wed, 26 Apr 2023 02:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682500690; cv=none; d=google.com; s=arc-20160816; b=DFUvMTAC1K6lns2WPYNaR5ra6YTVJKIQ928YTpC2LbQNMu2X855hH4C7IJbsG/A9Dt A72D3EQfLOIqTNQ2AHloxZvITAWriQ84RkBsmqzzJspgbjCpWJ5xac1BgH24qEO6lrnh qp7rk6h8qKL8BmZ4xFzNOuTriUIQafdtV0acmYBiLZJrNMOywXIL8VQdRt0Zq4DOS8uH YnLzHAJkodc5QIs3vISSeZvyCwjQaboimCLeH7d38l9xjVcGJfgyT/3WmftMZd56jqi0 A7ZEFBgg6sIS3UQJaRLUlrg7YvFCrqHK+UIAuskn/9tJTT5PvePqRTDWxNcs1kWZNoAb KxjA== 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 header.s=2020e header.b="/HOeLQdu"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a170902d05300b001a216fddd01si14862815pll.647.2023.04.26.02.17.58; Wed, 26 Apr 2023 02:18:10 -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 header.s=2020e header.b="/HOeLQdu"; 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 S239687AbjDZJOk (ORCPT + 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 ); 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" 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 , Dan Carpenter , Krzysztof Kozlowski , Vincent Whitchurch , Alim Akhtar , Daniel Lezcano , 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: Robot-Unsubscribe: Contact 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 AuthorDate: Mon, 03 Apr 2023 11:40:17 +02:00 Committer: Daniel Lezcano 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 Reported-by: Dan Carpenter Link: https://lore.kernel.org/r/202304021446.46XVKag0-lkp@intel.com/ Signed-off-by: Krzysztof Kozlowski Reviewed-by: Vincent Whitchurch Reviewed-by: Alim Akhtar Signed-off-by: Daniel Lezcano 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(); }