aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_da_format.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-10-29 07:11:58 -0400
committerBen Myers <bpm@sgi.com>2013-10-30 14:59:56 -0400
commit632b89e82bf1c04c251924b49adc689f7b346321 (patch)
tree4918ee3b34cbe99ffcd5fd982fb1adfcebe5a252 /fs/xfs/xfs_da_format.c
parenta62936210525da2f46ae264e0bf9680eafac176e (diff)
xfs: fix static and extern sparse warnings
The kbuild test robot indicated that there were some new sparse warnings in fs/xfs/xfs_dquot_buf.c. Actually, there were a lot more that is wasn't warning about, so fix them all up. Reported-by: kbuild test robot Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_da_format.c')
-rw-r--r--fs/xfs/xfs_da_format.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/xfs_da_format.c b/fs/xfs/xfs_da_format.c
index 870cac0b0981..e6c83e1fbc8a 100644
--- a/fs/xfs/xfs_da_format.c
+++ b/fs/xfs/xfs_da_format.c
@@ -18,6 +18,7 @@
18 */ 18 */
19#include "xfs.h" 19#include "xfs.h"
20#include "xfs_fs.h" 20#include "xfs_fs.h"
21#include "xfs_shared.h"
21#include "xfs_format.h" 22#include "xfs_format.h"
22#include "xfs_log_format.h" 23#include "xfs_log_format.h"
23#include "xfs_trans_resv.h" 24#include "xfs_trans_resv.h"
@@ -706,7 +707,7 @@ xfs_dir3_free_hdr_to_disk(
706 hdr3->nused = cpu_to_be32(from->nused); 707 hdr3->nused = cpu_to_be32(from->nused);
707} 708}
708 709
709const struct xfs_dir_ops xfs_dir2_ops = { 710static const struct xfs_dir_ops xfs_dir2_ops = {
710 .sf_entsize = xfs_dir2_sf_entsize, 711 .sf_entsize = xfs_dir2_sf_entsize,
711 .sf_nextentry = xfs_dir2_sf_nextentry, 712 .sf_nextentry = xfs_dir2_sf_nextentry,
712 .sf_get_ftype = xfs_dir2_sfe_get_ftype, 713 .sf_get_ftype = xfs_dir2_sfe_get_ftype,
@@ -756,7 +757,7 @@ const struct xfs_dir_ops xfs_dir2_ops = {
756 .db_to_fdindex = xfs_dir2_db_to_fdindex, 757 .db_to_fdindex = xfs_dir2_db_to_fdindex,
757}; 758};
758 759
759const struct xfs_dir_ops xfs_dir2_ftype_ops = { 760static const struct xfs_dir_ops xfs_dir2_ftype_ops = {
760 .sf_entsize = xfs_dir3_sf_entsize, 761 .sf_entsize = xfs_dir3_sf_entsize,
761 .sf_nextentry = xfs_dir3_sf_nextentry, 762 .sf_nextentry = xfs_dir3_sf_nextentry,
762 .sf_get_ftype = xfs_dir3_sfe_get_ftype, 763 .sf_get_ftype = xfs_dir3_sfe_get_ftype,
@@ -806,7 +807,7 @@ const struct xfs_dir_ops xfs_dir2_ftype_ops = {
806 .db_to_fdindex = xfs_dir2_db_to_fdindex, 807 .db_to_fdindex = xfs_dir2_db_to_fdindex,
807}; 808};
808 809
809const struct xfs_dir_ops xfs_dir3_ops = { 810static const struct xfs_dir_ops xfs_dir3_ops = {
810 .sf_entsize = xfs_dir3_sf_entsize, 811 .sf_entsize = xfs_dir3_sf_entsize,
811 .sf_nextentry = xfs_dir3_sf_nextentry, 812 .sf_nextentry = xfs_dir3_sf_nextentry,
812 .sf_get_ftype = xfs_dir3_sfe_get_ftype, 813 .sf_get_ftype = xfs_dir3_sfe_get_ftype,
@@ -856,14 +857,14 @@ const struct xfs_dir_ops xfs_dir3_ops = {
856 .db_to_fdindex = xfs_dir3_db_to_fdindex, 857 .db_to_fdindex = xfs_dir3_db_to_fdindex,
857}; 858};
858 859
859const struct xfs_dir_ops xfs_dir2_nondir_ops = { 860static const struct xfs_dir_ops xfs_dir2_nondir_ops = {
860 .node_hdr_size = sizeof(struct xfs_da_node_hdr), 861 .node_hdr_size = sizeof(struct xfs_da_node_hdr),
861 .node_hdr_to_disk = xfs_da2_node_hdr_to_disk, 862 .node_hdr_to_disk = xfs_da2_node_hdr_to_disk,
862 .node_hdr_from_disk = xfs_da2_node_hdr_from_disk, 863 .node_hdr_from_disk = xfs_da2_node_hdr_from_disk,
863 .node_tree_p = xfs_da2_node_tree_p, 864 .node_tree_p = xfs_da2_node_tree_p,
864}; 865};
865 866
866const struct xfs_dir_ops xfs_dir3_nondir_ops = { 867static const struct xfs_dir_ops xfs_dir3_nondir_ops = {
867 .node_hdr_size = sizeof(struct xfs_da3_node_hdr), 868 .node_hdr_size = sizeof(struct xfs_da3_node_hdr),
868 .node_hdr_to_disk = xfs_da3_node_hdr_to_disk, 869 .node_hdr_to_disk = xfs_da3_node_hdr_to_disk,
869 .node_hdr_from_disk = xfs_da3_node_hdr_from_disk, 870 .node_hdr_from_disk = xfs_da3_node_hdr_from_disk,