From: Eric Sandeen Date: Wed, 17 Oct 2018 18:25:10 +0000 (-0500) Subject: libxfs: add several zone extern declarations to libxfs_priv.h X-Git-Tag: v4.19.0-rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e0063616a08e87a84d4b3200a7d91b31b1e0d56;p=thirdparty%2Fxfsprogs-dev.git libxfs: add several zone extern declarations to libxfs_priv.h Several zones have extern declarations in kernelspace headers we don't have in userspace. Adding these to the libxfs_priv.h header silences sparse warnings about whether these should be static vars. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/libxfs/init.c b/libxfs/init.c index 10dcbf3ae..80fbe6a3e 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -363,15 +363,6 @@ done: static int manage_zones(int release) { - extern kmem_zone_t *xfs_buf_zone; - extern kmem_zone_t *xfs_ili_zone; - extern kmem_zone_t *xfs_inode_zone; - extern kmem_zone_t *xfs_ifork_zone; - extern kmem_zone_t *xfs_buf_item_zone; - extern kmem_zone_t *xfs_da_state_zone; - extern kmem_zone_t *xfs_btree_cur_zone; - extern kmem_zone_t *xfs_bmap_free_item_zone; - extern kmem_zone_t *xfs_trans_zone; extern void xfs_dir_startup(); if (release) { /* free zone allocation */ diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h index 6df78642a..b45d07eb2 100644 --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h @@ -55,6 +55,13 @@ #include "xfs_fs.h" #include "crc32c.h" +/* Zones used in libxfs allocations that aren't in shared header files */ +extern kmem_zone_t *xfs_buf_item_zone; +extern kmem_zone_t *xfs_ili_zone; +extern kmem_zone_t *xfs_buf_zone; +extern kmem_zone_t *xfs_inode_zone; +extern kmem_zone_t *xfs_trans_zone; + /* CRC stuff, buffer API dependent on it */ #define crc32c(c,p,l) crc32c_le((c),(unsigned char const *)(p),(l))