[PATCH v4 07/11] exfat: fix implicit declaration of brelse()

From: Namjae Jeon

Date: Mon May 18 2026 - 07:53:49 EST


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@xxxxxx>
Signed-off-by: Namjae Jeon <linkinjeon@xxxxxxxxxx>
---
fs/exfat/exfat_fs.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h
index cd38e71d3e8a..08d22d2581da 100644
--- a/fs/exfat/exfat_fs.h
+++ b/fs/exfat/exfat_fs.h
@@ -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

--
2.25.1