From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 12/21] objtool: Add CONFIG_CFI_CLANG support
Date: Fri, 15 Jan 2021 19:07:51 +0800 [thread overview]
Message-ID: <202101151958.QW805iDL-lkp@intel.com> (raw)
In-Reply-To: <c1889131d5de558e58700ba559e7d8606fe9c680.1610652862.git.jpoimboe@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 4662 bytes --]
Hi Josh,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/master]
[also build test ERROR on linus/master v5.11-rc3 next-20210115]
[cannot apply to xen-tip/linux-next tip/x86/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Josh-Poimboeuf/objtool-vmlinux-o-and-CLANG-LTO-support/20210115-125439
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 2c2adbc40b7276518921864053f3c02034b2290f
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/8bd968235f05d3e12d27c48feea19efdb7abeca6
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Josh-Poimboeuf/objtool-vmlinux-o-and-CLANG-LTO-support/20210115-125439
git checkout 8bd968235f05d3e12d27c48feea19efdb7abeca6
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All errors (new ones prefixed by >>):
elf.c: In function 'read_symbols':
elf.c:414:8: error: unused variable 'coldstr' [-Werror=unused-variable]
414 | char *coldstr;
| ^~~~~~~
elf.c: In function 'elf_open_read':
>> elf.c:640:12: error: 'sym' may be used uninitialized in this function [-Werror=maybe-uninitialized]
640 | sym = find_func_by_offset(sym->sec,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
641 | reloc->addend);
| ~~~~~~~~~~~~~~
elf.c:637:27: note: 'sym' was declared here
637 | struct symbol *func, *sym;
| ^~~
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: tools/objtool/elf.o] Error 1
make[3]: *** [Makefile:59: tools/objtool/objtool-in.o] Error 2
--
elf.c: In function 'read_symbols':
elf.c:414:8: error: unused variable 'coldstr' [-Werror=unused-variable]
414 | char *coldstr;
| ^~~~~~~
elf.c: In function 'elf_open_read':
>> elf.c:640:12: error: 'sym' may be used uninitialized in this function [-Werror=maybe-uninitialized]
640 | sym = find_func_by_offset(sym->sec,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
641 | reloc->addend);
| ~~~~~~~~~~~~~~
elf.c:637:27: note: 'sym' was declared here
637 | struct symbol *func, *sym;
| ^~~
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: tools/objtool/elf.o] Error 1
make[3]: *** [Makefile:59: tools/objtool/objtool-in.o] Error 2
make[2]: *** [Makefile:68: objtool] Error 2
make[1]: *** [Makefile:1931: tools/objtool] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
elf.c: In function 'read_symbols':
elf.c:414:8: error: unused variable 'coldstr' [-Werror=unused-variable]
414 | char *coldstr;
| ^~~~~~~
elf.c: In function 'elf_open_read':
>> elf.c:640:12: error: 'sym' may be used uninitialized in this function [-Werror=maybe-uninitialized]
640 | sym = find_func_by_offset(sym->sec,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
641 | reloc->addend);
| ~~~~~~~~~~~~~~
elf.c:637:27: note: 'sym' was declared here
637 | struct symbol *func, *sym;
| ^~~
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: tools/objtool/elf.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:59: tools/objtool/objtool-in.o] Error 2
make[2]: *** [Makefile:68: objtool] Error 2
make[1]: *** [Makefile:1931: tools/objtool] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45924 bytes --]
next prev parent reply other threads:[~2021-01-15 11:07 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-14 19:39 [PATCH 00/21] objtool: vmlinux.o and CLANG LTO support Josh Poimboeuf
2021-01-14 19:39 ` [PATCH 01/21] objtool: Fix seg fault in BT_FUNC() with fake jump Josh Poimboeuf
2021-01-14 20:04 ` Josh Poimboeuf
2021-01-14 19:39 ` [PATCH 02/21] objtool: Fix error handling for STD/CLD warnings Josh Poimboeuf
2021-01-14 19:39 ` [PATCH 03/21] objtool: Fix retpoline detection in asm code Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 04/21] objtool: Fix ".cold" section suffix check for newer versions of GCC Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 05/21] objtool: Support retpoline jump detection for vmlinux.o Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 06/21] x86/ftrace: Add UNWIND_HINT_FUNC annotation for ftrace_stub Josh Poimboeuf
2021-01-14 20:42 ` Steven Rostedt
2021-01-14 19:40 ` [PATCH 07/21] objtool: Assume only ELF functions do sibling calls Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 08/21] objtool: Add asm version of STACK_FRAME_NON_STANDARD Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 09/21] objtool: Combine UNWIND_HINT_RET_OFFSET and UNWIND_HINT_FUNC Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 10/21] objtool: Add xen_start_kernel() to noreturn list Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 11/21] objtool: Move unsuffixed symbol conversion to a helper function Josh Poimboeuf
2021-01-14 20:55 ` [PATCH v1.1 " Josh Poimboeuf
2021-01-14 21:30 ` Sedat Dilek
2021-01-15 8:49 ` [PATCH " kernel test robot
2021-01-15 14:09 ` kernel test robot
2021-01-14 19:40 ` [PATCH 12/21] objtool: Add CONFIG_CFI_CLANG support Josh Poimboeuf
2021-01-14 20:49 ` Sami Tolvanen
2021-01-14 20:52 ` Josh Poimboeuf
2021-01-14 20:56 ` [PATCH v1.1 " Josh Poimboeuf
2021-01-15 11:07 ` kernel test robot [this message]
2021-01-15 17:31 ` [PATCH " kernel test robot
2021-01-14 19:40 ` [PATCH 13/21] x86/xen: Support objtool validation in xen-asm.S Josh Poimboeuf
2021-01-15 0:31 ` boris.ostrovsky
2021-01-14 19:40 ` [PATCH 14/21] x86/xen: Support objtool vmlinux.o validation in xen-head.S Josh Poimboeuf
2021-01-15 0:32 ` boris.ostrovsky
2021-01-15 5:17 ` Jürgen Groß
2021-01-15 19:46 ` Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 15/21] x86/xen/pvh: Convert indirect jump to retpoline Josh Poimboeuf
2021-01-15 0:33 ` boris.ostrovsky
2021-01-15 5:24 ` Jürgen Groß
2021-01-15 15:08 ` Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 16/21] x86/ftrace: Support objtool vmlinux.o validation in ftrace_64.S Josh Poimboeuf
2021-01-14 20:42 ` Steven Rostedt
2021-01-14 19:40 ` [PATCH 17/21] x86/acpi: Convert indirect jump to retpoline Josh Poimboeuf
2021-01-14 22:59 ` Andrew Cooper
2021-01-14 23:47 ` Josh Poimboeuf
2021-01-15 0:54 ` Andrew Cooper
2021-01-14 19:40 ` [PATCH 18/21] x86/acpi: Support objtool validation in wakeup_64.S Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 19/21] x86/power: Convert indirect jumps to retpolines Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 20/21] x86/power: Move restore_registers() to top of the file Josh Poimboeuf
2021-01-14 19:40 ` [PATCH 21/21] x86/power: Support objtool validation in hibernate_asm_64.S Josh Poimboeuf
2021-01-15 0:41 ` [PATCH 00/21] objtool: vmlinux.o and CLANG LTO support Sami Tolvanen
2021-01-15 0:49 ` Nick Desaulniers
2021-01-15 19:52 ` Josh Poimboeuf
2021-01-15 20:19 ` Sedat Dilek
2021-01-15 20:59 ` Josh Poimboeuf
2021-01-15 21:01 ` Sedat Dilek
2021-01-18 17:22 ` Josh Poimboeuf
2021-01-19 21:29 ` Nick Desaulniers
2021-01-20 15:37 ` Josh Poimboeuf
2021-01-15 4:51 ` Sedat Dilek
2021-01-15 5:18 ` Sedat Dilek
2021-01-15 15:30 ` Sedat Dilek
2021-01-15 18:54 ` Sedat Dilek
2021-01-15 19:28 ` Josh Poimboeuf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202101151958.QW805iDL-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.