lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu,  4 Apr 2024 14:34:06 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: David Howells <dhowells@...hat.com>
Cc: Arnd Bergmann <arnd@...db.de>,
	Amir Goldstein <amir73il@...il.com>,
	Jan Kara <jack@...e.cz>,
	Christian Brauner <brauner@...nel.org>,
	Jens Axboe <axboe@...nel.dk>,
	netfs@...ts.linux.dev,
	linux-kernel@...r.kernel.org
Subject: [PATCH] netfs, cachefiles: include linux/bio.h for BIO_MAX_VECS

From: Arnd Bergmann <arnd@...db.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@...db.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@...hat.com)
  */
 
+#include <linux/bio.h>
 #include <linux/mount.h>
 #include <linux/slab.h>
 #include <linux/file.h>
-- 
2.39.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ