Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1121287lqp; Fri, 22 Mar 2024 06:20:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGR2j2tWs0NnW2ueuNP2kPdXw40M8DoxHioxJP+NeFm/mOD1bXks/Vmw/njHjxrEiUPEluTV8Cg5IO3W2lhbVs81p+STI4RxwKRGgBag== X-Google-Smtp-Source: AGHT+IFPrjZj+CsZejFcElwAJ836RaXsLix7+45m6WWRFKLMQVexk6AtoN9Ow6D36NRAFPsaSNxe X-Received: by 2002:a0c:f7ca:0:b0:696:735b:4f7d with SMTP id f10-20020a0cf7ca000000b00696735b4f7dmr516066qvo.15.1711113659509; Fri, 22 Mar 2024 06:20:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711113659; cv=pass; d=google.com; s=arc-20160816; b=vd5mVPOnaWtwhQIo9z+gDlIISqInN/LTTaPPFNr3CyUphRN7qd/8DGAD36R64N7hYU yFQ1qAW84sVWkEasSjS2MX9zQzleucXaWkIMDxZDo7MhZzglq4ruSWsgeGYUkAuIv7CD lb2oV3LXixGvUfXEjUmxB8drUcvpXj2FpzzlPYt0SA+EI/9a8zmty76MWZRqR27XLWSk ifJdpBRc335rydfhOQ9PH//NIITCpxhJNfACf9rFzHZmHLtGA1O/nZnyrPWk0Y/lFY7r 2coP0zUujhNvfgMr+L3zNkIC+GmKOvLvNoxYx0lcH5tUUhxkAK5smSPphydT4Br4PWPe EG7A== 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=RLAnHmLku2SjcHE1n5xArwSY41bBrzJxdJ/1tuSsXuM=; fh=1EubYjb6FCcJBGUQhQ9yRY+BKi+KS9IimlVn+rJb15s=; b=E4dLuun2rGm1SrnLa9i0+yp/TUQI9Od1rHaGk8DSF6UkvFnBYLYTYFdyNFSAAotZdP A6STyOezZgr5MpILV1HliGILfrshv/vnivlxLaE+MNace4cB4/p8A1H51LHUrYsq9XZJ ddqPWqsJur4gQ/GE9NZgpL61azmyHdS4iuOg2HihsF6i6yZRtqoQ/59NTKsoHd8bP0Mx bMUZSYsOjZm4QGI97VMXbmf2a4qugU6UcMQ0bHdXBxqhQUAOx4fglpwVom34qq16VEGi GZ9mQ3AFZdTqVTcaqEypiwof6fn4juHsZ8UHkN0YZWs1BOkIMk2ntoLYjmIW8253nNCP 8Z2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qq3mjn6v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111463-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 gg2-20020a056214252200b0069617a730d8si2026017qvb.573.2024.03.22.06.20.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111463-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=Qq3mjn6v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111463-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 3C7A51C21593 for ; Fri, 22 Mar 2024 13:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 639F445BF9; Fri, 22 Mar 2024 13:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qq3mjn6v" 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 8C91D44C89 for ; Fri, 22 Mar 2024 13:20:53 +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=1711113653; cv=none; b=UkHF97Ki1Lo3qv0ZGmXw3HY6h8dnJVFPHc3aNP7F5d3g6DJ8HaR3EClLt6AoE+p374RyJHnJgcQOjK1tSN2tghdBGjj5C3a/VxdMHBz0rp4894e8LKfSAdr6QwSJSFdKHLpfGV7v0QBtpxYueKhXV9bLRgFgbY1eZ0bl22AIKGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113653; c=relaxed/simple; bh=dhmhIvje5pxo5icHU70XN8P5F1o5mH5/DMloOr13o3A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=QEz+REk7QJLB9FqAxj7gCtP2HiL5DBjHFvzpbEaEq7yL6LVIZbI1K7ACX/Kg6qSd3vU48F7j82bIKn7+guAE8xxBDvFe1N78lsL9EhHHTz9UsdmofnhEP6CK7CuwvCWkX7ijLF94Y6AyfATReeb+Du+4d96WB1mQHhNMyCp7x18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Qq3mjn6v; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A9C2C433F1; Fri, 22 Mar 2024 13:20:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711113653; bh=dhmhIvje5pxo5icHU70XN8P5F1o5mH5/DMloOr13o3A=; h=From:To:Cc:Subject:Date:From; b=Qq3mjn6vj8RZWJYxfxxnpEvc+V64Pv2z1S7DaLBh2S95ywbixFJKMZi8eUqot7ise akn8sLWuI5u/riMOd2j+hmDYdSugsywayXQN11pf4YjegBDE13Ks7C4opHlJJ94sii kZ3dkDCjKBjvD7NLkxyQDzgFwccG8nAZA7fP/0pTskSed9Qrta3KrSbBSEFEHuTULt QWE+KhCk8vm0FCAv3F+uOqGGGcYfPuaQ9SazmOsz2PSiaweG/8xDi1FsvKtQOACjMv LIbGu8bgispM5m3wDkjOoZkZqERgKBkzjYZ2oC2voGB2RrdSIXbT19JbGnZwkngC6N JZvH0sfHImUrw== From: Arnd Bergmann To: Thomas Gleixner , Sebastian Andrzej Siewior Cc: Arnd Bergmann , Peter Zijlstra , Kent Overstreet , linux-kernel@vger.kernel.org Subject: [PATCH] irqflags: explicitly ignore lockdep_hrtimer_exit() argument Date: Fri, 22 Mar 2024 14:20:41 +0100 Message-Id: <20240322132048.906325-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") Signed-off-by: Arnd Bergmann --- 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