diff options
author | Kees Cook <keescook@chromium.org> | 2016-04-21 21:53:29 +0200 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2016-04-27 09:25:02 +0200 |
commit | da20dfe6b50ea4c1a82797b7ee8655a370535d73 (patch) | |
tree | caa0c865f34f8f6b458f244a0eeef69ea9f05016 | |
parent | LSM: LoadPin for kernel file loading restrictions (diff) | |
download | linux-da20dfe6b50ea4c1a82797b7ee8655a370535d73.tar.xz linux-da20dfe6b50ea4c1a82797b7ee8655a370535d73.zip |
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>
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 90477550b935..9847d5c49a0e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -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]; |