lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202011815.ZdbRejCO-lkp@intel.com>
Date:   Tue, 1 Feb 2022 18:11:39 +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-kernel@...r.kernel.org, Theodore Ts'o <tytso@....edu>
Subject: fs/ext4/super.c:2173:1: warning: unused function 'ctx_clear_flags'

Hi Lukas,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   26291c54e111ff6ba87a164d85d4a4e134b7315c
commit: 4437992be7ca3ac5dd0a62cad10357112d4fb43e ext4: remove lazytime/nolazytime mount options handled by MS_LAZYTIME
date:   6 weeks ago
config: mips-randconfig-r026-20220201 (https://download.01.org/0day-ci/archive/20220201/202202011815.ZdbRejCO-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579)
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/torvalds/linux.git/commit/?id=4437992be7ca3ac5dd0a62cad10357112d4fb43e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        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>:59: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>:62: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>:83: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>:86: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://github.com/llvm/llvm-project/issues/ 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=mips-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 -EB -fno-stack-check -march=mips32 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-generic -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=1024 -fno-stack-protector -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -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 -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 0x000055a97e99bc1f Signals.cpp:0:0
   #1 0x000055a97e999afc llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3441afc)
   #2 0x000055a97e8da497 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3382497)
   #3 0x000055a97e9921ae llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x343a1ae)
   #4 0x000055a97c5ef61b (/opt/cross/clang-6b1e844b69/bin/clang-14+0x109761b)
   #5 0x000055a97e8e0f4c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3388f4c)
   #6 0x000055a97f5c5337 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-6b1e844b69/bin/clang-14+0x406d337)
   #7 0x000055a97f5c1294 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-6b1e844b69/bin/clang-14+0x4069294)
   #8 0x000055a97d0525f7 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x1afa5f7)
   #9 0x000055a97dcfe42d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
   #10 0x000055a97e137727 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x2bdf727)
   #11 0x000055a97e1378a1 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x2bdf8a1)
   #12 0x000055a97e138b7f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x2be0b7f)
   #13 0x000055a97ecad8a7 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-6b1e844b69/bin/clang-14+0x37558a7)
   #14 0x000055a97f8dd283 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x4385283)
   #15 0x000055a9804025b9 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x4eaa5b9)
   #16 0x000055a97f8dc0cf clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-6b1e844b69/bin/clang-14+0x43840cf)
   #17 0x000055a97f2dbec1 clang::FrontendAction::Execute() (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3d83ec1)
   #18 0x000055a97f2736da clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3d1b6da)
   #19 0x000055a97f3a069b (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3e4869b)
   #20 0x000055a97c5f0bc4 cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-6b1e844b69/bin/clang-14+0x1098bc4)
   #21 0x000055a97c5ed89b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
   #22 0x000055a97f10d945 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 0x000055a97e8da353 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3382353)
   #24 0x000055a97f10e23e 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 0x000055a97f0e4297 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3b8c297)
   #26 0x000055a97f0e4c77 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3b8cc77)
   #27 0x000055a97f0ee6d9 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-6b1e844b69/bin/clang-14+0x3b966d9)
   #28 0x000055a97c51752f main (/opt/cross/clang-6b1e844b69/bin/clang-14+0xfbf52f)
   #29 0x00007fdae2a03d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
   #30 0x000055a97c5ed3ba _start (/opt/cross/clang-6b1e844b69/bin/clang-14+0x10953ba)
   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 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-6b1e844b69/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

Powered by Openwall GNU/*/Linux Powered by OpenVZ