Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2421640rdb; Mon, 12 Feb 2024 04:36:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjR7DwbZ0ryBK8zdA5ScULdMvYaqETqOC1nf4ftJWbYfQGwn3+KxtLZS6jXjiUQLAKAnET X-Received: by 2002:a17:902:7ed0:b0:1d9:ae31:83f1 with SMTP id p16-20020a1709027ed000b001d9ae3183f1mr6126747plb.18.1707741363064; Mon, 12 Feb 2024 04:36:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707741363; cv=pass; d=google.com; s=arc-20160816; b=IuUSfz1jmWn+p7ewJpj72caFC5dq1jX62yDSMDwxJwjj6IekKwGUl/lbyisgCdDvGM xDgpDMoHdh9rPdoypQuWVQojVPnNEKQyK4E1RZa7hxoT7iX8CmtHvdaeU1juMQjJuWCP DLzVGVN7xY5JiStMZmN/S5lq6DmZWI9D3w2HEU8UbpdjmM7lxGQeL3tOIOy1GYil6LVh uTmA3wmBkJFcf11Zlca5guDP5XdHKrlcnAn0iz2HlE42lmyS+F6OPQGUeks9b2hY1TvK xSacinFKHTOz4VZOUY25FpKTFOxt5nugPV3da11d+2g2bFwOamzZUe4UI1iHnsfOAvqq 7bRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Rbp1a/oWmC60GzopWyS63b0lSYqdHKtx9OgPkoSIKHY=; fh=rnn0mfDUxPWl3CbFAxCoogIyYX5bxRgvymbwVJeP0wI=; b=MS0fAD5QvRIYsPHqQTmF1jU4lHnlzuLTNbKrVsAsEUsdK6RMsR013+wqXi0oZmLlrb 1RrZB2hjU9Jv51lqzeCeuAQL5ioozDzpv+WX6SWAiFZ/9RQtklRzg0wI4azfsEJ5WFTN 17h7HG355UertKxFwxDfc+95KvWKVcl0+SY/IrTahepvT+ygi567EI/s5VYn2wWDdSqR rcKGOAslm/xB7Xo1RbHqf6l0prLFVsc78c5d2IhsC5kR+UN314qntSB9gpZaf0cDkiKy WUAu4xcWASV6maRZoSXsQ053wvZzX+2EuPwXIeBRDGRuYmAD9oswfEARCrP6z7xgwjIF Ze/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=klrrKhto; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXIbgAFUTaSfsQU2w8Kcd95CMgPIb4UCG9TVK7QyLc6478nV7hTberJ47PdbvoxUBhNeigTDDkuibaBNBQHzGDIfsIjDdJRyeHUcr3NPg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y17-20020a17090322d100b001d8ded24c8esi193082plg.143.2024.02.12.04.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 04:36:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61519-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=@kernel.org header.s=k20201202 header.b=klrrKhto; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61519-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5902AB27F92 for ; Mon, 12 Feb 2024 12:12:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0C373B787; Mon, 12 Feb 2024 12:07:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="klrrKhto" 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 F09763B788 for ; Mon, 12 Feb 2024 12:07:07 +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=1707739628; cv=none; b=J6B1YCgq7rbpOY0IPytFRpzmuA5y89gUuwNyE1u/pdOlHA2MpnNkj8ebyvvvNL6ItxqDOaMzjpHvcVPVTiAJM9z9F6/qJMAqdTUdHd9H6YKAGGDtqhdXo1p7gdKjXiRYWpAiFodxkrbHvjSB+1uEsWfiPCt7eagADF+kHvrAq94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707739628; c=relaxed/simple; bh=LQmJbMxUHHNxmj+wZOcWtcnobJr4RQ8gaDhALegl4ro=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qYV6aDBPi3+I+KZ8xSLepO7hAUaKlUdtuPEtTk2XAnZRPI7E/pIQ9a6MTr0IgLIrvyfdX3D0R/uEJ2XLwo1R9HQoXWqdpfRnQ5j9Ge2trZBg+FYLBl8YE/QvGmJlyh9PKH4pPaKcro/pK8gTD6yxjpaXETZK1rh/i/04fOE2tR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=klrrKhto; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADBD2C433C7; Mon, 12 Feb 2024 12:07:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707739627; bh=LQmJbMxUHHNxmj+wZOcWtcnobJr4RQ8gaDhALegl4ro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=klrrKhto1pzd+vjY0LmOy///tGlTdcQrKF6R6lHYrADeOHq68a+Jztz1izfQCTctc nox32I+dQ+pmbn01XLNktdzfY3LaMFkD6JVwGas3R0YP9PFIIwCxzclp1yRrCaElWc k69Jx9WMmMH7qxR0Hp4jYRluaHhZz48WeH/8t4uafvlL6icOhodMkiEsd/ONwMhPyg wmMiP9Oym3XkZ+M9DC5YiGr3OncMRW/UFGQES/KayFAcixuyVNXxS3m3Y1KWKbRyfT rEO62yP7mvtUerFR/K0pkFsdThfoEzNJ+7eM6B1ct3zKhGttOc1X0OJ3wx7UG7hCqg NF7fRXdVRRnTw== Date: Mon, 12 Feb 2024 13:07:02 +0100 From: Christian Brauner To: Arnd Bergmann Cc: NeilBrown , Jeff Layton , Arnd Bergmann , Luca Vizzarro , Tom Talpey , linux-kernel@vger.kernel.org Subject: Re: [PATCH] filelock: ignore 'lock' argument to for_each_file_lock() Message-ID: <20240212-packpapier-messstation-c5a0c081a0c7@brauner> References: <20240212112620.1272058-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240212112620.1272058-1-arnd@kernel.org> On Mon, Feb 12, 2024 at 12:26:11PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_FILE_LOCKING is disabled, ceph causes a warning about > a variable that is only used insode of the for_each_file_lock() > loop: > > fs/ceph/locks.c: In function 'ceph_count_locks': > fs/ceph/locks.c:380:27: error: unused variable 'lock' [-Werror=unused-variable] > 380 | struct file_lock *lock; > > Rather than working around this in ceph, change the macro definition > to still contain a reference to the variable in order to shut up the > warning. > > Fixes: 75cabec0111b ("filelock: add some new helper functions") > Signed-off-by: Arnd Bergmann > --- Yup, seems good to me.