public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@kernel.org>
To: David Howells <dhowells@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
	Amir Goldstein <amir73il@gmail.com>, Jan Kara <jack@suse.cz>,
	Christian Brauner <brauner@kernel.org>,
	Jens Axboe <axboe@kernel.dk>,
	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	[thread overview]
Message-ID: <20240404123414.2675384-1-arnd@kernel.org> (raw)

From: Arnd Bergmann <arnd@arndb.de>

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 <arnd@arndb.de>
---
 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 <linux/bio.h>
 #include <linux/mount.h>
 #include <linux/slab.h>
 #include <linux/file.h>
-- 
2.39.2


             reply	other threads:[~2024-04-04 12:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-04 12:34 Arnd Bergmann [this message]
2024-04-05 10:51 ` [PATCH] netfs, cachefiles: include linux/bio.h for BIO_MAX_VECS Christian Brauner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240404123414.2675384-1-arnd@kernel.org \
    --to=arnd@kernel.org \
    --cc=amir73il@gmail.com \
    --cc=arnd@arndb.de \
    --cc=axboe@kernel.dk \
    --cc=brauner@kernel.org \
    --cc=dhowells@redhat.com \
    --cc=jack@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netfs@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox