From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7B6357464; Tue, 30 Apr 2024 10:59:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474767; cv=none; b=ZduCMoB9vZ2FmMAf7zpXrpBrT/bYKkGFfHedxaW3/Ljz3sZ1Wzz2Pbz828VTAmh7hgLNWeHr+/1FBmcS71cfYexwDOLkgLEcRGOwkvKh9zHBaNLtlcIm0eCxfMyOW5+t20onb/scAzFaUOGB4rCk7Pc2aVPGXYt2WWnVxELEM4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474767; c=relaxed/simple; bh=sYRzUwvaCiVL+qfZJTHVInPFLt1Za6h7upf6ujLwnp8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ss6MUuKMPaKV3roQYVSuKq8uamBKf8vBWtLYcT5KwjIjdT468XWrYmALM/pKEqdWfDjEN9UC7ww0CJ8PXGMUKBec9qzhYl0XSqC2TyLVLtTAMmczKKtmVpecBL+T+9Kf97m2GD7jrKCcuqjE3/25PJLYmeGdjaiDOJfdUVDIDZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XXD1gNlF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XXD1gNlF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9487C2BBFC; Tue, 30 Apr 2024 10:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714474767; bh=sYRzUwvaCiVL+qfZJTHVInPFLt1Za6h7upf6ujLwnp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XXD1gNlFUpQYqEBtblg6gsqGlPXPGgfmsfQXnsY3bMvJ16qwK2fWD0AsHQELowWRD E8nza3s/SD3vgc/JHScn0IThaHH8kEr0ure8SEP5do8tvwQlFSGbgjzWp/acfmi8cF IBaCrgg2yVKatFYSVGYqlEl/HYeOrcn80KHxKeXg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Arnd Bergmann , Thomas Gleixner , Sebastian Andrzej Siewior Subject: [PATCH 5.10 029/138] irqflags: Explicitly ignore lockdep_hrtimer_exit() argument Date: Tue, 30 Apr 2024 12:38:34 +0200 Message-ID: <20240430103050.287574503@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430103049.422035273@linuxfoundation.org> References: <20240430103049.422035273@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit c1d11fc2c8320871b40730991071dd0a0b405bc8 upstream. When building with 'make W=1' but CONFIG_TRACE_IRQFLAGS=n, the unused argument to lockdep_hrtimer_exit() causes a warning: kernel/time/hrtimer.c:1655:14: error: variable 'expires_in_hardirq' set but not used [-Werror=unused-but-set-variable] This is intentional behavior, so add a cast to void to shut up the warning. Fixes: 73d20564e0dc ("hrtimer: Don't dereference the hrtimer pointer after the callback") Reported-by: kernel test robot Signed-off-by: Arnd Bergmann Signed-off-by: Thomas Gleixner Reviewed-by: Sebastian Andrzej Siewior Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240408074609.3170807-1-arnd@kernel.org Closes: https://lore.kernel.org/oe-kbuild-all/202311191229.55QXHVc6-lkp@intel.com/ Signed-off-by: Greg Kroah-Hartman --- include/linux/irqflags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/irqflags.h +++ b/include/linux/irqflags.h @@ -133,7 +133,7 @@ do { \ # define lockdep_softirq_enter() do { } while (0) # define lockdep_softirq_exit() do { } while (0) # define lockdep_hrtimer_enter(__hrtimer) false -# define lockdep_hrtimer_exit(__context) do { } while (0) +# define lockdep_hrtimer_exit(__context) do { (void)(__context); } while (0) # define lockdep_posixtimer_enter() do { } while (0) # define lockdep_posixtimer_exit() do { } while (0) # define lockdep_irq_work_enter(__work) do { } while (0)