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: <202202121524.strwjtrg-lkp@intel.com>
Date:   Sat, 12 Feb 2022 18:38:55 +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:   83e396641110663d3c7bb25b9bc0c6a750359ecf
commit: 4437992be7ca3ac5dd0a62cad10357112d4fb43e ext4: remove lazytime/nolazytime mount options handled by MS_LAZYTIME
date:   7 weeks ago
config: mips-randconfig-r005-20220211 (https://download.01.org/0day-ci/archive/20220212/202202121524.strwjtrg-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f6685f774697c85d6a352dcea013f46a99f9fe31)
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>:84: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>:87: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>:108: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>:111: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=0xffffffff84000000 -DLINKER_LOAD_ADDRESS=0x84000000 -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,-mips32 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-bmips/ -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 -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 0x000056373747f14f Signals.cpp:0:0
   #1 0x000056373747d02c llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-c7eb846345/bin/clang-15+0x347a02c)
   #2 0x00005637373bd2c7 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-c7eb846345/bin/clang-15+0x33ba2c7)
   #3 0x00005637374756de llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-c7eb846345/bin/clang-15+0x34726de)
   #4 0x00005637350ab9fb (/opt/cross/clang-c7eb846345/bin/clang-15+0x10a89fb)
   #5 0x00005637373c3d7c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-c7eb846345/bin/clang-15+0x33c0d7c)
   #6 0x00005637380d0420 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-c7eb846345/bin/clang-15+0x40cd420)
   #7 0x00005637380cc354 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-c7eb846345/bin/clang-15+0x40c9354)
   #8 0x0000563735b17077 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-c7eb846345/bin/clang-15+0x1b14077)
   #9 0x00005637367cf98d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
   #10 0x0000563736c10617 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-c7eb846345/bin/clang-15+0x2c0d617)
   #11 0x0000563736c10791 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-c7eb846345/bin/clang-15+0x2c0d791)
   #12 0x0000563736c1130f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-c7eb846345/bin/clang-15+0x2c0e30f)
   #13 0x00005637377972b7 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-c7eb846345/bin/clang-15+0x37942b7)
   #14 0x00005637383e97c3 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-c7eb846345/bin/clang-15+0x43e67c3)
   #15 0x0000563738ec04e9 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-c7eb846345/bin/clang-15+0x4ebd4e9)
   #16 0x00005637383e85ff clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-c7eb846345/bin/clang-15+0x43e55ff)
   #17 0x0000563737de55b1 clang::FrontendAction::Execute() (/opt/cross/clang-c7eb846345/bin/clang-15+0x3de25b1)
   #18 0x0000563737d7c05a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-c7eb846345/bin/clang-15+0x3d7905a)
   #19 0x0000563737ea9ceb (/opt/cross/clang-c7eb846345/bin/clang-15+0x3ea6ceb)
   #20 0x00005637350acfac cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-c7eb846345/bin/clang-15+0x10a9fac)
   #21 0x00005637350a9c7b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
   #22 0x0000563737c13585 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 0x00005637373bd183 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-c7eb846345/bin/clang-15+0x33ba183)
   #24 0x0000563737c13e7e 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 0x0000563737be8a77 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-c7eb846345/bin/clang-15+0x3be5a77)
   #26 0x0000563737be9457 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-c7eb846345/bin/clang-15+0x3be6457)
   #27 0x0000563737bf2ae9 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-c7eb846345/bin/clang-15+0x3befae9)
   #28 0x0000563734fd23ff main (/opt/cross/clang-c7eb846345/bin/clang-15+0xfcf3ff)
   #29 0x00007f9d5663bd0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
   #30 0x00005637350a979a _start (/opt/cross/clang-c7eb846345/bin/clang-15+0x10a679a)
   clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 15.0.0 (git://gitmirror/llvm_project c7eb84634519e6497be42f5fe323f9a04ed67127)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-c7eb846345/bin
   clang-15: note: diagnostic msg:
   Makefile arch drivers fs include kernel scripts source usr


vim +/ctx_clear_flags +2173 fs/ext4/super.c

6e47a3cc68fc525 Lukas Czerner 2021-10-27  2172  
6e47a3cc68fc525 Lukas Czerner 2021-10-27 @2173  EXT4_SET_CTX(flags);
6e47a3cc68fc525 Lukas Czerner 2021-10-27  2174  EXT4_SET_CTX(mount_opt);
6e47a3cc68fc525 Lukas Czerner 2021-10-27  2175  EXT4_SET_CTX(mount_opt2);
6e47a3cc68fc525 Lukas Czerner 2021-10-27  2176  EXT4_SET_CTX(mount_flags);
6e47a3cc68fc525 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