]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
exfat: fix implicit declaration of brelse()
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 13 May 2026 01:44:46 +0000 (10:44 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 15 Jun 2026 10:55:52 +0000 (19:55 +0900)
exfat_cluster_walk() calls brelse(bh) without including the header that
declares the function, causing the following build error:

    fs/exfat/exfat_fs.h:542:9: error: implicit declaration of function ‘brelse’ [-Werror=implicit-function-declaration]

Fix this by adding the missing buffer_head.h in exfat_fs.h.

Acked-by: Christoph Hellwig <hch@lst.de>
Acked-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/exfat_fs.h

index e60b955da0d0f8fd1b08143688a12a901c1d1e57..86ae468c965b2c986cfb7be47c1da52542d997c3 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/blkdev.h>
 #include <linux/backing-dev.h>
 #include <uapi/linux/exfat.h>
+#include <linux/buffer_head.h>
 
 #define EXFAT_ROOT_INO         1