mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-16 06:31:46 +00:00
fs: fix over-zealous use of "const"
When I was fixing up const recommendations from checkpatch.pl, I went overboard. This fixes the warning (during a W=1 build): include/linux/fs.h:2627:74: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] static inline const char * const kernel_read_file_id_str(enum kernel_read_file_id id) Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: James Morris <james.l.morris@oracle.com>
This commit is contained in:
parent
9b091556a0
commit
da20dfe6b5
@ -2600,7 +2600,7 @@ static const char * const kernel_read_file_str[] = {
|
||||
__kernel_read_file_id(__fid_stringify)
|
||||
};
|
||||
|
||||
static inline const char * const kernel_read_file_id_str(enum kernel_read_file_id id)
|
||||
static inline const char *kernel_read_file_id_str(enum kernel_read_file_id id)
|
||||
{
|
||||
if (id < 0 || id >= READING_MAX_ID)
|
||||
return kernel_read_file_str[READING_UNKNOWN];
|
||||
|
Loading…
x
Reference in New Issue
Block a user