lkml.org 
[lkml]   [2022]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[ammarfaizi2-block:axboe/linux-block/for-5.19/io_uring-pbuf 48/89] fs/io_uring.c:8498:6: warning: unused variable 'i'
tree:   https://github.com/ammarfaizi2/linux-block axboe/linux-block/for-5.19/io_uring-pbuf
head: 086401d42d41ebb636d9293288494033cbf9ba10
commit: 5e45690a1cb8cb591ccf4a517cdd6ad6cb369ac4 [48/89] io_uring: store SCM state in io_fixed_file->file_ptr
config: mips-randconfig-r015-20220501 (https://download.01.org/0day-ci/archive/20220502/202205021814.miF011yS-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 09325d36061e42b495d1f4c7e933e260eac260ed)
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://github.com/ammarfaizi2/linux-block/commit/5e45690a1cb8cb591ccf4a517cdd6ad6cb369ac4
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block axboe/linux-block/for-5.19/io_uring-pbuf
git checkout 5e45690a1cb8cb591ccf4a517cdd6ad6cb369ac4
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> fs/io_uring.c:8498:6: warning: unused variable 'i'
int i;
^
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/atomic.h", .line = 155, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $1 # atomic_add
addu $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/.io_uring.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=gnu11 --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-ath25 -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 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -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 -Wno-shift-negative-value -I fs -I ./fs -DKBUILD_MODFILE="fs/io_uring" -DKBUILD_BASENAME="io_uring" -DKBUILD_MODNAME="io_uring" -D__KBUILD_MODNAME=kmod_io_uring -c -o fs/io_uring.o fs/io_uring.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'fs/io_uring.c'.
4. Running pass 'Mips Assembly Printer' on function '@io_uring_cancel_generic'
#0 0x000055fc440b0cdf Signals.cpp:0:0
#1 0x000055fc440aeb04 llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-09325d3606/bin/clang-15+0x34b1b04)
#2 0x000055fc43fedf17 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-09325d3606/bin/clang-15+0x33f0f17)
#3 0x000055fc440a713e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-09325d3606/bin/clang-15+0x34aa13e)
#4 0x000055fc41cbf28b (/opt/cross/clang-09325d3606/bin/clang-15+0x10c228b)
#5 0x000055fc43ff4a4c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-09325d3606/bin/clang-15+0x33f7a4c)
#6 0x000055fc44d33540 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-09325d3606/bin/clang-15+0x4136540)
#7 0x000055fc44d2f442 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-09325d3606/bin/clang-15+0x4132442)
#8 0x000055fc427533f7 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-09325d3606/bin/clang-15+0x1b563f7)
#9 0x000055fc4343a6ad llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
#10 0x000055fc438832c7 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-09325d3606/bin/clang-15+0x2c862c7)
#11 0x000055fc43883441 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-09325d3606/bin/clang-15+0x2c86441)
#12 0x000055fc43883fbf llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-09325d3606/bin/clang-15+0x2c86fbf)
#13 0x000055fc443dd37f 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-09325d3606/bin/clang-15+0x37e037f)
#14 0x000055fc4505ccd1 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-09325d3606/bin/clang-15+0x445fcd1)
#15 0x000055fc45be2ac1 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-09325d3606/bin/clang-15+0x4fe5ac1)
#16 0x000055fc4505c395 clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-09325d3606/bin/clang-15+0x445f395)
#17 0x000055fc44a44751 clang::FrontendAction::Execute() (/opt/cross/clang-09325d3606/bin/clang-15+0x3e47751)
#18 0x000055fc449d8d0a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-09325d3606/bin/clang-15+0x3ddbd0a)
#19 0x000055fc44b0bc6b (/opt/cross/clang-09325d3606/bin/clang-15+0x3f0ec6b)
#20 0x000055fc41cc083c cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-09325d3606/bin/clang-15+0x10c383c)
#21 0x000055fc41cbd50b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
#22 0x000055fc44867d95 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 0x000055fc43feddd3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-09325d3606/bin/clang-15+0x33f0dd3)
#24 0x000055fc4486868e 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 0x000055fc4483aa17 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-09325d3606/bin/clang-15+0x3c3da17)
#26 0x000055fc4483b3f7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-09325d3606/bin/clang-15+0x3c3e3f7)
#27 0x000055fc448448ea clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-09325d3606/bin/clang-15+0x3c478ea)
#28 0x000055fc41c0994f main (/opt/cross/clang-09325d3606/bin/clang-15+0x100c94f)
#29 0x00007f969d4be7fd __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x237fd)
#30 0x000055fc41cbd02a _start (/opt/cross/clang-09325d3606/bin/clang-15+0x10c002a)
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 09325d36061e42b495d1f4c7e933e260eac260ed)
Target: mips-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-09325d3606/bin
clang-15: note: diagnostic msg:
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm nr_bisected scripts security sound source usr virt


vim +/i +8498 fs/io_uring.c

9123c8ffce1610 Pavel Begunkov 2021-06-14 8495
fff4db76be297b Pavel Begunkov 2021-04-25 8496 static void __io_sqe_files_unregister(struct io_ring_ctx *ctx)
1ad555c6ae6e28 Bijan Mottahedeh 2021-01-15 8497 {
1f59bc0f18cf46 Pavel Begunkov 2022-04-06 @8498 int i;
1f59bc0f18cf46 Pavel Begunkov 2022-04-06 8499

:::::: The code at line 8498 was first introduced by commit
:::::: 1f59bc0f18cf46abe27ea18cfa4cb7f1b4166896 io_uring: don't scm-account for non af_unix sockets

:::::: TO: Pavel Begunkov <asml.silence@gmail.com>
:::::: CC: Jens Axboe <axboe@kernel.dk>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-05-02 12:36    [W:3.998 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site