Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp165lqp; Thu, 4 Apr 2024 05:37:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLOpQw2iYVe9OlKTUWIhbPgCGeueSnS88J4nvHm+BQdxnu/OFZYJX7SH2/Li3g9t1XHoWRBEczyQppCh7az30S3BQSVY7xbbbA91IbFA== X-Google-Smtp-Source: AGHT+IHZcM76s8o2pBiHERNfIcP5eBoRlb0hY1oQVR8Q486l/XXsv9bTrmz0aRoxXGNvvFnOyqCn X-Received: by 2002:a67:f4c5:0:b0:476:9fde:7886 with SMTP id s5-20020a67f4c5000000b004769fde7886mr2078207vsn.18.1712234263525; Thu, 04 Apr 2024 05:37:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712234263; cv=pass; d=google.com; s=arc-20160816; b=VDIbtPXzlC6wVanKBF6qum7kFviwMYU3GYnE1fp3Ot1b7TSKkhSoqYWMO8/y2Bd09B eEuAgIzS9OUwbQgiIA9k6A/OdWEZGVXXwrjmDhmJg9NjoLZsfXsvtIZrnjJRnPRAJ9Oj egrZ/CuM1eEUw+9NC0iqyjwrgTXLnx+phOP4lmQqam7gjl6rft6HTKxJXnuIcfhazTsb MigvgIcjJOwDFS2EcWC7ushM+Q1BKtMw2l8dAfJLuTOZznk6+uCQLo/6864R9V7eABRB kApVbON4hNFid2Bl6UjTroY3hQPEeBEpIhVjXQcFDQvV2MDg+tDPCoe84xL9EAhAihRB AUdQ== 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=8G7inNUkLQyT77EN1lSubXMTMp1zhQiWhEhFffcTAuA=; fh=TQRDZVB6qgcQAj/3WW/88hhGDaf90/c3w0Yckdib6DA=; b=RB8aU5o79XOnnbSMtatGZGID/3iYiikaAN13X/UuHzhg/SpDd2udO7cU7GuB7v1dlE oNNv2CqKV9ZTcVnsQ4+fZ5+AcmamG9vuSOsAMfP4Ysx6D8EYnP0RenHDje/R04I2B5Vi 7NudzrJ7kjTa/5VVCMnvlgmKbpiXW6STeQEu7NKN6FjZEaKy5JHg3DsOfVhAXVm6jyVJ Cb0Aal/tpCPgYIPHLNbu2RWhU1AdLYFQA4GWzIcdqMTmUj3Y/j8OLAArLbEXAVpf7wx3 q/r5evPOyCAXdIFlLeLM6bSIm4D0dBtOMhNJr1pBnPvkKbZgYAPMCEuc2pscq486aN7S 5Pvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RITkEaZ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131443-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131443-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 l15-20020ad44d0f000000b006992385f17csi4504968qvl.483.2024.04.04.05.37.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 05:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131443-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=RITkEaZ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131443-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131443-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 14E011C2266D for ; Thu, 4 Apr 2024 12:37:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4F7C12839D; Thu, 4 Apr 2024 12:34:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RITkEaZ+" 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 CBAE28626C; Thu, 4 Apr 2024 12:34:19 +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=1712234060; cv=none; b=br5bVmN7HXQysu/9tQHpAXHlRVRX8Cc06xiNOPCBDdtTMPoIVUmajNPeucsW9ZdQheym8zI/JI1ugj4iP0w8BDc+AFBK3DeVxJ2QVTZo7g/W8V5mAuBWiSGl9BvrPA5LEGaFU6Adb33ICGtJCr6XqnS9WjwKIi9jzyLlCzqriKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712234060; c=relaxed/simple; bh=HM/5JA49Jt79PaOxisOklc2h4lFho/dJAQcXbp3RyLI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=W5tuH6U7hFgbGuz9azT1HZyxg1DHfps1clY3zvOEAC7jzBHLvMSD8CY8+PfUxsS2xToxX9EuKdHGOeUlshxnLzSEw5SXTIm8eQhnSxXoJRbqlmQvw0p4dIX+qPWG71B7/Vw9u5emKa6AgJ81fTkA6yJ/i/xG06bpFTfwIQ7BtNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RITkEaZ+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C38EDC433C7; Thu, 4 Apr 2024 12:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712234059; bh=HM/5JA49Jt79PaOxisOklc2h4lFho/dJAQcXbp3RyLI=; h=From:To:Cc:Subject:Date:From; b=RITkEaZ+av4z3murfWN+pchh5Hm2HRy0uOM/NRGkQVyocOZiYCmE19z2gi+E+Xm9u EbsotRKFVqyzkhptj+gMiGWPhEl2tcyugDifM0URoNNOK8bSIkHYOa6TdyNb7SHm1W 2v/XQuiFdgTyy7/ZidugrvDZDiL3HNmW+OcUS/28lpJQsbdyOI0GJMLZmkYV40Eg0l wZeibRpr/+OLW9b6ork32UAWsZRsrGAtq/xhBULGsgFpxzb8GOCAa49oB4bzQ0+N8x hCWo+2nmlyTV2Hs3I3fj82apWbL/NYe/MRm92G4CSoF3FWXxXN9RUhEnxcv+1H4fXE deLsshhxljTTA== From: Arnd Bergmann To: David Howells Cc: Arnd Bergmann , Amir Goldstein , Jan Kara , Christian Brauner , Jens Axboe , netfs@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] netfs, cachefiles: include linux/bio.h for BIO_MAX_VECS Date: Thu, 4 Apr 2024 14:34:06 +0200 Message-Id: <20240404123414.2675384-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 The newly added code causes a build failure without this in some configurations: fs/cachefiles/io.c: In function 'cachefiles_prepare_write_subreq': fs/cachefiles/io.c:633:31: error: 'BIO_MAX_VECS' undeclared (first use in this function); did you mean 'BIO_MAX_SECTORS'? 633 | subreq->max_nr_segs = BIO_MAX_VECS; | ^~~~~~~~~~~~ | BIO_MAX_SECTORS fs/cachefiles/io.c:633:31: note: each undeclared identifier is reported only once for each function it appears in Fixes: 0d393b1a6699 ("netfs, cachefiles: Implement helpers for new write code") Signed-off-by: Arnd Bergmann --- fs/cachefiles/io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/cachefiles/io.c b/fs/cachefiles/io.c index 437b24b0fd1c..cc5505d4ddaa 100644 --- a/fs/cachefiles/io.c +++ b/fs/cachefiles/io.c @@ -5,6 +5,7 @@ * Written by David Howells (dhowells@redhat.com) */ +#include #include #include #include -- 2.39.2