summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2023-06-16 04:51:32 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2023-11-01 23:07:08 +0300
commit60da3640b07ce03706a8c77a3740ebad8b9af063 (patch)
treeed6a15305dcc0b7420a8e30827dd7b801e9d2df2 /include
parent3737df782c740b944912ed93420c57344b1cf864 (diff)
downloadlinux-60da3640b07ce03706a8c77a3740ebad8b9af063.tar.xz
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: Xi Zhang <zhangxi@kylinos.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/module_symbol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/module_symbol.h b/include/linux/module_symbol.h
index 1269543d0634..77c9895b9ddb 100644
--- a/include/linux/module_symbol.h
+++ b/include/linux/module_symbol.h
@@ -3,7 +3,7 @@
#define _LINUX_MODULE_SYMBOL_H
/* 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')
return true;