]> git.baikalelectronics.ru Git - kernel.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)
commit8a2888325f6bb929d478891e7b632604ce35482a
tree2c5cdbc3fa783c1a4b87ff2f49727f72bcc2a057
parent9959168e1cb748eb822c33a028fbd12156c18c4b
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: 34583efdce2b ("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