mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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: 1fc4d33fed
("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>
This commit is contained in:
parent
657bdfb7f5
commit
fd29f7af75
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ extern struct xfs_name xfs_name_dotdot;
|
|||
/*
|
||||
* Convert inode mode to directory entry filetype
|
||||
*/
|
||||
extern const unsigned char xfs_mode_to_ftype(int mode);
|
||||
extern unsigned char xfs_mode_to_ftype(int mode);
|
||||
|
||||
/*
|
||||
* directory operations vector for encode/decode routines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue