diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-08-13 18:56:24 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-08-13 18:56:24 +0300 |
commit | 4c75bf7e4a0e5472bd8f0bf0a4a418ac717a9b70 (patch) | |
tree | 3dd695b5ee811bac4259ea408bd93c618d46179c /scripts | |
parent | 3dcf1473c711be5536321fa4d465b9ed9e42a0ce (diff) | |
parent | 6ccbd7fd474674654019a20177c943359469103a (diff) | |
download | linux-4c75bf7e4a0e5472bd8f0bf0a4a418ac717a9b70.tar.xz |
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')
-rw-r--r-- | scripts/kallsyms.c | 1 |
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) { |