Linux: unused parameter 'file' in tools/objtool/check.c

Created on 23 Sep 2019  路  5Comments  路  Source: ClangBuiltLinux/linux

Trying to compile kernel 5.3.1 with LLVM/clang-9.0.0 on x86_64

HOSTCC  scripts/recordmcount
  CC       /builddir/build/BUILD/linux-5.3/tools/objtool/exec-cmd.o
  CC       /builddir/build/BUILD/linux-5.3/tools/objtool/orc_dump.o
  CC       /builddir/build/BUILD/linux-5.3/tools/objtool/elf.o
  CC       /builddir/build/BUILD/linux-5.3/tools/objtool/special.o
BUILDSTDERR: check.c:807:49: error: unused parameter 'file' [-Werror,-Wunused-parameter]
BUILDSTDERR: static int handle_jump_alt(struct objtool_file *file,
BUILDSTDERR:                                                 ^
[ARCH] x86_64 [BUG] linux-stable [FIXED][LINUX] 5.3 [TOOL] objtool

Most helpful comment

I have requested that that patch be added to -stable: https://lore.kernel.org/stable/20190925164047.GA471117@archlinux-threadripper/

All 5 comments

While this and #677 do appear to be legitimate warnings, I have never seen them before, leading me to believe this is environment related. I wonder if this patch would hide the warnings for you? https://git.kernel.org/tip/f73b3cc39c84220e6dccd463b5c8279b03514646

Hi @nathanchance ,
Looks like that patch https://git.kernel.org/tip/f73b3cc39c84220e6dccd463b5c8279b03514646 helps to move further.

I have requested that that patch be added to -stable: https://lore.kernel.org/stable/20190925164047.GA471117@archlinux-threadripper/

Was this page helpful?
0 / 5 - 0 ratings