Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1184735lqe; Mon, 8 Apr 2024 00:48:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNt9fA5mZ+dGAP4aWot6weJJaJZny5DROWHc2p08tW/KapVFlD0Mins40TpIQtLTKX42NQ8cHMfY93mDJwGbOMvZiuQKQkiN1lyjOc4w== X-Google-Smtp-Source: AGHT+IHVwmqGZlGAFyE/NQ1l4UKGzBfBRIbluT7j7qnrbQVDkphI6YxQYun1vmTfidiumup6CeSS X-Received: by 2002:a05:620a:2906:b0:78d:5f09:9859 with SMTP id m6-20020a05620a290600b0078d5f099859mr5590633qkp.60.1712562531722; Mon, 08 Apr 2024 00:48:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712562531; cv=pass; d=google.com; s=arc-20160816; b=T1GUWOom8SnBzy/JK92TXBfCJd5viYxkTd36OK8B/OB1a554mDpuBA7lz8j8QnOkoH 87FPdVjuGDK2LZV3Nt3Fhi9xzs5B0jMjmWNXPT3IkfECw6RHE962t2XeVAIxyCeYWg+w izlm0Ep75WvXTu1RpnrCxbSMNmSXNwDsrkedlE9Cga88TFfzsp5MANXVmXXzsmQCRLOe gM13pmacjJKeBcPiu8nzky73jZdWQmrmy5vcbiUpY7baQ6tL/UzwsB3Wqt6d1BECiIFq f0qXjePLiTQHZJ65l10luveaKB/0bz2F7wNsnHaNe7+fOowruQQ19UQYIXnCoZQGAqj2 xPHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=wutSL1G3qpTuhc/C5kdrOf4wfd9SwfAACzZnaMjfY04=; fh=psH7hehUtsLQQFV6r0BpE4+3XmnyEyJcv1+y2/8L8WY=; b=Lprai6FfA7G5AK76RkDldfsXz4EYDB1n3nD/2g5goqp+wRbchTZfkHjFj2YZwph0gP EZq/ttDAhzIKU/EVdg558DrjVHqlZ2rA2ciG6Jm4xmCp3dlNJ2PaeFa3slbvuH5VNMj+ pucJeb2LOdtEZpPVtVUUudnbSmWKWfetOTODNIiaawjjspd3ToabMFyJGxkV5w0RwSfO vwkkIvjX0bt6nv4+I4avNRYDSl0krLaO99vkwvXYFXo4wDUCocsdTfo/aVZZ2o0KVp5S 93OBol25gkOo36rCNhY4pU6Rfvv6eV6R8fOPESIQ3G3Lv1hLQ/UykoKpazohfwS83zGt nSBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YRuDci2U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f2-20020a05620a15a200b0078d647577f6si1996331qkk.669.2024.04.08.00.48.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 00:48:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YRuDci2U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 599B81C220A2 for ; Mon, 8 Apr 2024 07:48:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B3A5383A1; Mon, 8 Apr 2024 07:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YRuDci2U" 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 47CED381B9 for ; Mon, 8 Apr 2024 07:46:13 +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=1712562374; cv=none; b=rKTPF4nQ8o7nbbx4sK1CKbHAGHfZi7Mi5isH6+KfkLdxgjETKyUaBKWUWZF49o7ZfDRS9WRVP3RpgF8RpAuQ8zA6jzUHG63B9P1066W3ed1GDGUrDlQaZ8yo7/2U9JQQ7e3Gy3ztmi9Srpo8Lm4tVKtSk0Y/rf2qGm+2Oj0bA5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712562374; c=relaxed/simple; bh=nE3RUWHz5jKp/obOWd69daNJpf1Rs9mZzvPmwp7OE3M=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eb/ZpEg0N8vlRFKatfco6gYfwR1fXi+f5oGrkcuFWZcfB9WD+Cfd5geQr21KXBNu5JTm3Pdm6qy1ycOJ4G4Ssi24BSo5HiqHf5Y1hBRmlxGUqWpKCD9cDBHGFAWYoKTsafG2xbqklh96xzScX58TyB3X3QfVttl5wzYy9EsK4PU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YRuDci2U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23A37C433C7; Mon, 8 Apr 2024 07:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712562373; bh=nE3RUWHz5jKp/obOWd69daNJpf1Rs9mZzvPmwp7OE3M=; h=From:To:Cc:Subject:Date:From; b=YRuDci2UGxdG7q6KcVU94MjJopJhQkzQaD8IYRfAP+YZBYu7bAWis8xWA+aPQIglJ miR4DaN1/rt/wRf4rdjxA7QE4fCKYHgRLomj9DRoJnKKOfA8ehRK4OfXhRa2zIyz/X T598yrv0Dr4R+7wGcVgF1PwZsQLba3QwsvdAmTBo5yhaqVF6oV/EEKCjWp12as+snq VIWY7olGlKE1hZHSckiIE0iLkS72GD0ATxTby6uiB5VfbCI8IhVgtHueVztSrp3qnV NT6Lz947Ovav8/pKNkGacShmtK/7a5l81nYgyY57YuH4vvnDKT4UkDtQJNfh26Xt8x yFIQw0rHVuSvg== From: Arnd Bergmann To: Thomas Gleixner Cc: Arnd Bergmann , kernel test robot , Sebastian Andrzej Siewior , Kent Overstreet , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: [PATCH] [v2] irqflags: explicitly ignore lockdep_hrtimer_exit() argument Date: Mon, 8 Apr 2024 09:46:01 +0200 Message-Id: <20240408074609.3170807-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann 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 Closes: https://lore.kernel.org/oe-kbuild-all/202311191229.55QXHVc6-lkp@intel.com/ Reviewed-by: Sebastian Andrzej Siewior Signed-off-by: Arnd Bergmann --- Reposting my patch, please apply this one or the identical one from https://lore.kernel.org/lkml/20231120153953.kGBSHe5j@linutronix.de/ --- include/linux/irqflags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h index 147feebd508c..3f003d5fde53 100644 --- a/include/linux/irqflags.h +++ b/include/linux/irqflags.h @@ -114,7 +114,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) -- 2.39.2