[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112281210.5KoelwNW-lkp@intel.com>
Date: Tue, 28 Dec 2021 12:50:34 +0800
From: kernel test robot <lkp@...el.com>
To: Lukas Czerner <lczerner@...hat.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-ext4@...r.kernel.org, Theodore Ts'o <tytso@....edu>
Subject: [tytso-ext4:dev 15/32] fs/ext4/super.c:2173:1: warning: unused
function 'ctx_clear_flags'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
head: 856dd2096e2a01f6eb2c9d60f6e0cd587aa273a8
commit: 4437992be7ca3ac5dd0a62cad10357112d4fb43e [15/32] ext4: remove lazytime/nolazytime mount options handled by MS_LAZYTIME
config: mips-buildonly-randconfig-r006-20211228 (https://download.01.org/0day-ci/archive/20211228/202112281210.5KoelwNW-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7171af744543433ac75b232eb7dfdaef7efd4d7a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?id=4437992be7ca3ac5dd0a62cad10357112d4fb43e
git remote add tytso-ext4 https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
git fetch --no-tags tytso-ext4 dev
git checkout 4437992be7ca3ac5dd0a62cad10357112d4fb43e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash fs/ext4/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> fs/ext4/super.c:2173:1: warning: unused function 'ctx_clear_flags'
EXT4_SET_CTX(flags);
^
fs/ext4/super.c:2161:20: note: expanded from macro 'EXT4_SET_CTX'
static inline void ctx_clear_##name(struct ext4_fs_context ^
<scratch space>:66:1: note: expanded from here
ctx_clear_flags
^
fs/ext4/super.c:2173:1: warning: unused function 'ctx_test_flags'
fs/ext4/super.c:2167:34: note: expanded from macro 'EXT4_SET_CTX'
static inline unsigned long ^
<scratch space>:69:1: note: expanded from here
ctx_test_flags
^
fs/ext4/super.c:2176:1: warning: unused function 'ctx_clear_mount_flags'
EXT4_SET_CTX(mount_flags);
^
fs/ext4/super.c:2161:20: note: expanded from macro 'EXT4_SET_CTX'
static inline void ctx_clear_##name(struct ext4_fs_context ^
<scratch space>:90:1: note: expanded from here
ctx_clear_mount_flags
^
fs/ext4/super.c:2176:1: warning: unused function 'ctx_test_mount_flags'
fs/ext4/super.c:2167:34: note: expanded from macro 'EXT4_SET_CTX'
static inline unsigned long ^
<scratch space>:93:1: note: expanded from here
ctx_test_mount_flags
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $1
or $0, $2
sc $0, $1
beqz $0, 1b
.set pop
'
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,fs/ext4/.super.o.d -nostdinc -Iarch/mips/include -I./arch/mips/include/generated -Iinclude -I./include -Iarch/mips/include/uapi -I./arch/mips/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -DVMLINUX_LOAD_ADDRESS=0xffffffff80100000 -DLINKER_LOAD_ADDRESS=0x80100000 -DDATAOFFSET=0 -Qunused-arguments -fmacro-prefix-map== -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 --target=mipsel-linux -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -DGAS_HAS_SET_HARDFLOAT -Wa,-msoft-float -ffreestanding -EL -fno-stack-check -march=mips32 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-au1x00 -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -Os -Wframe-larger-than=1024 -fstack-protector -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -fno-strict-overflow -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -I fs/ext4 -I ./fs/ext4 -ffunction-sections -fdata-sections -DKBUILD_MODFILE="fs/ext4/ext4" -DKBUILD_BASENAME="super" -DKBUILD_MODNAME="ext4" -D__KBUILD_MODNAME=kmod_ext4 -c -o fs/ext4/super.o fs/ext4/super.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'fs/ext4/super.c'.
4. Running pass 'Mips Assembly Printer' on function '@...4_read_bh_nowait'
#0 0x000055a28effc39f Signals.cpp:0:0
#1 0x000055a28effa2ec llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-7171af7445/bin/clang-14+0x33fc2ec)
#2 0x000055a28ef3df37 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-7171af7445/bin/clang-14+0x333ff37)
#3 0x000055a28eff299e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-7171af7445/bin/clang-14+0x33f499e)
#4 0x000055a28cc7ed1b (/opt/cross/clang-7171af7445/bin/clang-14+0x1080d1b)
#5 0x000055a28ef449dc llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-7171af7445/bin/clang-14+0x33469dc)
#6 0x000055a28fc22da8 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-7171af7445/bin/clang-14+0x4024da8)
#7 0x000055a28fc1eb49 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-7171af7445/bin/clang-14+0x4020b49)
#8 0x000055a28d6d7f4e llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-7171af7445/bin/clang-14+0x1ad9f4e)
#9 0x000055a28e36d60d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
#10 0x000055a28e7a6337 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-7171af7445/bin/clang-14+0x2ba8337)
#11 0x000055a28e7a64b1 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-7171af7445/bin/clang-14+0x2ba84b1)
#12 0x000055a28e7a778f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-7171af7445/bin/clang-14+0x2ba978f)
#13 0x000055a28f30a44a clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/opt/cross/clang-7171af7445/bin/clang-14+0x370c44a)
#14 0x000055a28ff37da3 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-7171af7445/bin/clang-14+0x4339da3)
#15 0x000055a290a3bcf9 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-7171af7445/bin/clang-14+0x4e3dcf9)
#16 0x000055a28ff36bff clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-7171af7445/bin/clang-14+0x4338bff)
#17 0x000055a28f935401 clang::FrontendAction::Execute() (/opt/cross/clang-7171af7445/bin/clang-14+0x3d37401)
#18 0x000055a28f8cd03a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-7171af7445/bin/clang-14+0x3ccf03a)
#19 0x000055a28f9fe46b (/opt/cross/clang-7171af7445/bin/clang-14+0x3e0046b)
#20 0x000055a28cc7fa64 cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-7171af7445/bin/clang-14+0x1081a64)
#21 0x000055a28cc7cfab ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
#22 0x000055a28f76a0d5 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const::'lambda'()>(long) Job.cpp:0:0
#23 0x000055a28ef3ddf3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-7171af7445/bin/clang-14+0x333fdf3)
#24 0x000055a28f76a9ce clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const (.part.216) Job.cpp:0:0
#25 0x000055a28f741557 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-7171af7445/bin/clang-14+0x3b43557)
#26 0x000055a28f741f37 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-7171af7445/bin/clang-14+0x3b43f37)
#27 0x000055a28f74b799 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-7171af7445/bin/clang-14+0x3b4d799)
#28 0x000055a28cba819f main (/opt/cross/clang-7171af7445/bin/clang-14+0xfaa19f)
#29 0x00007f08b6be9d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
#30 0x000055a28cc7caca _start (/opt/cross/clang-7171af7445/bin/clang-14+0x107eaca)
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project 7171af744543433ac75b232eb7dfdaef7efd4d7a)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-7171af7445/bin
clang-14: note: diagnostic msg:
Makefile arch fs include kernel nr_bisected scripts source usr
vim +/ctx_clear_flags +2173 fs/ext4/super.c
6e47a3cc68fc52 Lukas Czerner 2021-10-27 2172
6e47a3cc68fc52 Lukas Czerner 2021-10-27 @2173 EXT4_SET_CTX(flags);
6e47a3cc68fc52 Lukas Czerner 2021-10-27 2174 EXT4_SET_CTX(mount_opt);
6e47a3cc68fc52 Lukas Czerner 2021-10-27 2175 EXT4_SET_CTX(mount_opt2);
6e47a3cc68fc52 Lukas Czerner 2021-10-27 2176 EXT4_SET_CTX(mount_flags);
6e47a3cc68fc52 Lukas Czerner 2021-10-27 2177
:::::: The code at line 2173 was first introduced by commit
:::::: 6e47a3cc68fc525428297a00524833361ebbb0e9 ext4: get rid of super block and sbi from handle_mount_ops()
:::::: TO: Lukas Czerner <lczerner@...hat.com>
:::::: CC: Theodore Ts'o <tytso@....edu>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists