summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2023-06-16 09:51:33 +0800
committerLuis Chamberlain <mcgrof@kernel.org>2023-11-01 13:07:08 -0700
commit04311b9b306388288f72cf6ebde659274b06ffd6 (patch)
tree53218ca06a9ab3550a452d6cda4b5e49e11cd0ac /scripts
parent60da3640b07ce03706a8c77a3740ebad8b9af063 (diff)
downloadlinux-stable-04311b9b306388288f72cf6ebde659274b06ffd6.tar.gz
linux-stable-04311b9b306388288f72cf6ebde659274b06ffd6.tar.bz2
linux-stable-04311b9b306388288f72cf6ebde659274b06ffd6.zip
module: Make is_valid_name() return bool
The return value of is_valid_name() is true or false, so change its type to reflect that. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index b3dee80497cb..ea72af229d2b 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1059,12 +1059,12 @@ static int secref_whitelist(const char *fromsec, const char *fromsym,
* only by merging __exit and __init sections into __text, bloating
* the kernel (which is especially evil on embedded platforms).
*/
-static inline int is_valid_name(struct elf_info *elf, Elf_Sym *sym)
+static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym)
{
const char *name = elf->strtab + sym->st_name;
if (!name || !strlen(name))
- return 0;
+ return false;
return !is_mapping_symbol(name);
}