Skip to content
Snippets Groups Projects
Commit 60da3640 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Luis Chamberlain
Browse files

module: Make is_mapping_symbol() return bool


The return value of is_mapping_symbol() is true or false,
so change its type to reflect that.

Suggested-by: default avatarXi Zhang <zhangxi@kylinos.cn>
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 3737df78
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#define _LINUX_MODULE_SYMBOL_H #define _LINUX_MODULE_SYMBOL_H
/* This ignores the intensely annoying "mapping symbols" found in ELF files. */ /* This ignores the intensely annoying "mapping symbols" found in ELF files. */
static inline int is_mapping_symbol(const char *str) static inline bool is_mapping_symbol(const char *str)
{ {
if (str[0] == '.' && str[1] == 'L') if (str[0] == '.' && str[1] == 'L')
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment