]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: remove kernel stubs from xfs_shared.h libxfs-5.16-sync_2022-03-17
authorDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 22:13:24 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 17 Mar 2022 21:40:28 +0000 (14:40 -0700)
The kernel stubs added to xfs_shared.h don't belong there, and are
mostly unnecessary with the #ifdef __KERNEL__ bits added to the
xfs_ag.[ch] files. Move the one remaining needed stub in libxfs_priv.h.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/libxfs_priv.h
libxfs/xfs_shared.h

index 67d9a8bb1eb74bd845918ecef7ab32461ecdecb2..167bd8c024d0b9813d6c524417949da1c8f4b174 100644 (file)
@@ -75,6 +75,8 @@ extern struct kmem_cache *xfs_trans_cache;
 /* fake up kernel's iomap, (not) used in xfs_bmap.[ch] */
 struct iomap;
 
+#define cancel_delayed_work_sync(work) do { } while(0)
+
 #include "xfs_cksum.h"
 
 /*
index bafee48cddb10f995118801d768c4250f385aafc..25c4cab58851c18bb9fa7d71bbed63434b7ac091 100644 (file)
@@ -180,24 +180,4 @@ struct xfs_ino_geometry {
 
 };
 
-/* Faked up kernel bits */
-struct rb_root {
-};
-
-#define RB_ROOT                (struct rb_root) { }
-
-typedef struct wait_queue_head {
-} wait_queue_head_t;
-
-#define init_waitqueue_head(wqh)       do { } while(0)
-
-struct rhashtable {
-};
-
-struct delayed_work {
-};
-
-#define INIT_DELAYED_WORK(work, func)  do { } while(0)
-#define cancel_delayed_work_sync(work) do { } while(0)
-
 #endif /* __XFS_SHARED_H__ */