Skip to content

Commit

Permalink
xfs: move declaration to header file
Browse files Browse the repository at this point in the history
Fix this sparse warning:
  fs/xfs/xfs_da_btree.c:1550:26: warning: symbol 'xfs_default_nameops' was not declared. Should it be static?

Signed-off-by: Hannes Eder <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Felix Blyakher <[email protected]>
  • Loading branch information
hanneseder-net authored and Felix Blyakher committed Mar 6, 2009
1 parent 47d1ff6 commit 2441849
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions fs/xfs/xfs_da_btree.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,6 @@ xfs_daddr_t xfs_da_blkno(xfs_dabuf_t *dabuf);

extern struct kmem_zone *xfs_da_state_zone;
extern struct kmem_zone *xfs_dabuf_zone;
extern const struct xfs_nameops xfs_default_nameops;

#endif /* __XFS_DA_BTREE_H__ */
2 changes: 0 additions & 2 deletions fs/xfs/xfs_dir2.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@

struct xfs_name xfs_name_dotdot = {"..", 2};

extern const struct xfs_nameops xfs_default_nameops;

/*
* ASCII case-insensitive (ie. A-Z) support for directories that was
* used in IRIX.
Expand Down

0 comments on commit 2441849

Please sign in to comment.