summaryrefslogtreecommitdiff
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-08-13 08:56:24 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-08-13 08:56:24 -0700
commit4c75bf7e4a0e5472bd8f0bf0a4a418ac717a9b70 (patch)
tree3dd695b5ee811bac4259ea408bd93c618d46179c /scripts/kallsyms.c
parent3dcf1473c711be5536321fa4d465b9ed9e42a0ce (diff)
parent6ccbd7fd474674654019a20177c943359469103a (diff)
Merge tag 'kbuild-fixes-v6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - Clear errno before calling getline() - Fix a modpost warning for ARCH=alpha * tag 'kbuild-fixes-v6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: alpha: remove __init annotation from exported page_is_ram() scripts/kallsyms: Fix build failure by setting errno before calling getline()
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 16c87938b316..653b92f6d4c8 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -129,6 +129,7 @@ static struct sym_entry *read_symbol(FILE *in, char **buf, size_t *buf_len)
ssize_t readlen;
struct sym_entry *sym;
+ errno = 0;
readlen = getline(buf, buf_len, in);
if (readlen < 0) {
if (errno) {