From 428a2c2d6b128c18f3dcd289f549bf510933679a Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 29 Nov 2024 21:12:47 -0500 Subject: [PATCH 149/233] bcachefs: Fix fsck.c build in userspace Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Kent Overstreet Signed-off-by: Alexander Miroshnichenko --- fs/bcachefs/fsck.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index f2174528ee5f..cc15ff135cd6 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -3206,6 +3206,8 @@ int bch2_fix_reflink_p(struct bch_fs *c) return ret; } +#ifndef NO_BCACHEFS_CHARDEV + struct fsck_thread { struct thread_with_stdio thr; struct bch_fs *c; @@ -3421,3 +3423,5 @@ long bch2_ioctl_fsck_online(struct bch_fs *c, struct bch_ioctl_fsck_online arg) } return ret; } + +#endif /* NO_BCACHEFS_CHARDEV */ -- 2.45.2