Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp116174lqt; Mon, 18 Mar 2024 03:14:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5kMriRAoCMoi3uK2Ztan9u0QZgahIYl54wMBpgKgzG2m1OhMJhCTUXc7vbrKKEl1eG/RwjcHmYeEq6u54lDZbc3LYDiFQVrLSXSIgKQ== X-Google-Smtp-Source: AGHT+IEmYwaFt4ZpUOiZP1/cnLJ3q63p26RHZFCSlWAPxP4+/p0oxIkvIDGkSBaqLjZ9B25H6g6M X-Received: by 2002:a05:6a00:2382:b0:6e5:e719:e05f with SMTP id f2-20020a056a00238200b006e5e719e05fmr12296529pfc.12.1710756847454; Mon, 18 Mar 2024 03:14:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710756847; cv=pass; d=google.com; s=arc-20160816; b=wZq7jI5yI4ahoZxT+XrVRgm1PxSIqI3q5jaRf8nQx4UTClUrFT7fs+/wmPH/yYbhh+ O6NywuDAdwscdsApElxOoy/10U0ef1j+YA8hDVUo9s+t4IJQ7YNvqzKpQOeJwMitXqUT kxnYnfQgrNacSvgdSw+3709p/sL5WYu6SNlPjOYp8BTDi18zlr0LpiAXgFQKJEIX5cwk jjwU1fI2d2Kdvqkv+irXGe3DE+zd6FDnz1ZBPeUR+2sPbtAItFMBia2HXttyy/xb6jsH VvAg35nBkIb+UJG+oKdCw8kVCOVtzHY4pQlI865riG9OI35sa9dR/U8nhTFQZMiJlqpH stow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=ZeNUXFt88J5Zrnq9qWPqXunvGAoLpF6D3aHs6CO2NCU=; fh=gsI9Xkenftn3YhQ0iJ03QKKw+KVdTyVkpgNcvCXmrLA=; b=WVJpd3G2ttYWmjkoj2S+x9JksSaHL5LLzBQOPQZtOxrcVFDGOjOmHp/+mqwaLrhrGr 1ZrwA/h55Q7hIe2IBzhhihYDV633vKnaezUbPKkHQxY9Pp5rK2jCRxdE5X/qWl5566QS HolpubdQYuBEtYXS9wAWhubK/nLlYtAEYEYJ5ufoyo5mSQ8v3UfwXYWpAadxDSrMBBDS cfUSeK8ChemyrPlsuwv+D/BhGzUnbZNjzwrhcYWtBT3jDE54sTs1YJqEBy4/38e5FKNz xiswrRNSqHnS94p7m1Qe504eAMYnol5K/aJi3ov75RdxXmzuf5zILENTtgJjkskpv9HP Mw+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=i+YlIicq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-105959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g15-20020a63374f000000b005e453195b29si7766456pgn.356.2024.03.18.03.14.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 03:14:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=i+YlIicq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-105959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B0AFAB225AA for ; Mon, 18 Mar 2024 10:11:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E699A41A80; Mon, 18 Mar 2024 10:07:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="i+YlIicq"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WkshTjaD" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A5EA3C06B; Mon, 18 Mar 2024 10:07:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710756469; cv=none; b=lXu22tT8F3XHoBlbj8/ujU1PqT/kUa1+ySQiqyFGcvJ32siECDQuQWY+DZcCOMahx/06aKKKTl+BRjhi783lAgPln55Y1PoNRwqbFp+/4DID3Q9XrgMoZbYKpOJJsoqLr7/aoNOX+W6rWms6SQlwY/PLwsXmK8gzJelW73z8rlM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710756469; c=relaxed/simple; bh=opO/gYfr7zj2VFIPKDWndG+a04lr2IdZBrJOpvTbyxQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=MlcTCZZBWOlNgriM5ebriMb+UbwH1PuQZDwylC4k5MOlkchhA4GWZjFFxTZksvMwJUTy0+0TfOdpB4blnoxd8P1HQdjMwVnuHn36r6x/5E/f95+KZ62etZrbACKsJ6nyRzSpJlLAhAxgvDOc6RQhXyF/v7fWHVTbXzkJIPeQceM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=i+YlIicq; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=WkshTjaD; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Mon, 18 Mar 2024 10:07:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710756465; 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=ZeNUXFt88J5Zrnq9qWPqXunvGAoLpF6D3aHs6CO2NCU=; b=i+YlIicqt6RVGl3PEV88irDbEvDsBe/UD88eOxZv94/FRCx83vDrv+g7pgiL8GeGOPvQPu pPdIOwuYVdsvp2D1e7uHnoyc5Gc2UDX+9FFi7Y2UUl4gBuytg61MhXdsBhG11ECZdfkfVk RKaMYtT3UcEy3THM25thzu+GmEHF3S+d5TLToq3iqU4es7rcUPBpTx0bl4NUihcCtwpFXG OfScDQ9NPeWtU+C7lhX3G9VjNGiyMdqQdex3+74cF579tBsDTzPFkRRYjabgLN3Wf53W9i iTzIY41AjD5GYdYaQ2bJyfB1QaTD4dXCDs1m8aghsC3ndlJ9keaqYzgQFyJ6VQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710756465; 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=ZeNUXFt88J5Zrnq9qWPqXunvGAoLpF6D3aHs6CO2NCU=; b=WkshTjaDKy2Bc/g+1iWX5qJqmKK5I6zCA9cIu0Tqal9wghs1TSpMlvaLnvehFdK+1viuDg zfyJoy29qml5ZuDQ== From: "tip-bot2 for Daniel Lezcano" 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/imx: Fix -Wunused-but-set-variable warning Cc: kernel test robot , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231227143546.2823683-1-daniel.lezcano@linaro.org> References: <20231227143546.2823683-1-daniel.lezcano@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171075646475.12214.5546639572917005787.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/core branch of tip: Commit-ID: bf3159c0ef1fd2bc999e3a4910b1c610949ae333 Gitweb: https://git.kernel.org/tip/bf3159c0ef1fd2bc999e3a4910b1c610949ae333 Author: Daniel Lezcano AuthorDate: Wed, 27 Dec 2023 15:35:46 +01:00 Committer: Daniel Lezcano CommitterDate: Mon, 22 Jan 2024 13:11:02 +01:00 clocksource/drivers/imx: Fix -Wunused-but-set-variable warning All warnings (new ones prefixed by >>): drivers/clocksource/timer-imx-gpt.c: In function 'mxc_timer_interrupt': >> drivers/clocksource/timer-imx-gpt.c:279:18: warning: variable 'tstat' set but not used [-Wunused-but-set-variable] 279 | uint32_t tstat; | ^~~~~ vim +/tstat +279 drivers/clocksource/timer-imx-gpt.c The change remove the tstats assignment but not the reading of the register, assuming the register may be a ROR (Reset On Read) which happens in the driver's interrupt registers. Fixes: df181e382816 ("clocksource/drivers/imx-gpt: Add support for ARM64") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312231803.XzPddRa5-lkp@intel.com/ Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20231227143546.2823683-1-daniel.lezcano@linaro.org --- drivers/clocksource/timer-imx-gpt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c index 6a878d2..489e691 100644 --- a/drivers/clocksource/timer-imx-gpt.c +++ b/drivers/clocksource/timer-imx-gpt.c @@ -258,9 +258,8 @@ static irqreturn_t mxc_timer_interrupt(int irq, void *dev_id) { struct clock_event_device *ced = dev_id; struct imx_timer *imxtm = to_imx_timer(ced); - uint32_t tstat; - tstat = readl_relaxed(imxtm->base + imxtm->gpt->reg_tstat); + readl_relaxed(imxtm->base + imxtm->gpt->reg_tstat); imxtm->gpt->gpt_irq_acknowledge(imxtm);