module: Make is_mapping_symbol() return bool
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 16 Jun 2023 01:51:32 +0000 (09:51 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Wed, 1 Nov 2023 20:07:08 +0000 (13:07 -0700)
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>
include/linux/module_symbol.h

index 1269543d0634b2c6c7988ac0e4a25ba71f4d1ca3..77c9895b9ddb19494bd87a34802102f476745578 100644 (file)
@@ -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;