]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: fix xfs_mode_to_ftype() prototype
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Jan 2017 20:39:21 +0000 (12:39 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Jan 2017 20:39:21 +0000 (12:39 -0800)
commitfd29f7af75b7adf250beccffa63746c6a88e2b74
tree2c5cdbc3fa783c1a4b87ff2f49727f72bcc2a057
parent657bdfb7f5e68ca5e2ed009ab473c429b0d6af85
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>
fs/xfs/libxfs/xfs_dir2.c
fs/xfs/libxfs/xfs_dir2.h