summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_dir2.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-01-18 21:39:21 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2017-01-18 21:39:21 +0100
commitfd29f7af75b7adf250beccffa63746c6a88e2b74 (patch)
tree2c5cdbc3fa783c1a4b87ff2f49727f72bcc2a057 /fs/xfs/libxfs/xfs_dir2.c
parentxfs: don't wrap ID in xfs_dq_get_next_id (diff)
downloadlinux-fd29f7af75b7adf250beccffa63746c6a88e2b74.tar.xz
linux-fd29f7af75b7adf250beccffa63746c6a88e2b74.zip
xfs: fix xfs_mode_to_ftype() prototype
A harmless warning just got introduced: fs/xfs/libxfs/xfs_dir2.h:40:8: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] Removing the 'const' modifier avoids the warning and has no other effect. Fixes: 1fc4d33fed12 ("xfs: replace xfs_mode_to_ftype table with switch statement") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.c')
-rw-r--r--fs/xfs/libxfs/xfs_dir2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.c b/fs/xfs/libxfs/xfs_dir2.c
index eb64f3884d3d..2f389d366e93 100644
--- a/fs/xfs/libxfs/xfs_dir2.c
+++ b/fs/xfs/libxfs/xfs_dir2.c
@@ -38,7 +38,7 @@ struct xfs_name xfs_name_dotdot = { (unsigned char *)"..", 2, XFS_DIR3_FT_DIR };
/*
* Convert inode mode to directory entry filetype
*/
-const unsigned char xfs_mode_to_ftype(int mode)
+unsigned char xfs_mode_to_ftype(int mode)
{
switch (mode & S_IFMT) {
case S_IFREG: