linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/infiniband/core/nldev.c:2543:1: warning: unused function '__chk_RDMA_NL_NLDEV'
@ 2021-11-06  7:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-06  7:33 UTC (permalink / raw)
  To: Aharon Landau
  Cc: llvm, kbuild-all, linux-kernel, Jason Gunthorpe, Leon Romanovsky,
	Mark Zhang

[-- Attachment #1: Type: text/plain, Size: 10570 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: 3c3c1f1416392382faa0238e76a70d7810aab2ef RDMA/nldev: Allow optional-counter status configuration through RDMA netlink
date:   4 weeks ago
config: mips-buildonly-randconfig-r004-20211106 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 627868263cd4d57c230b61904483a3dad9e1a1da)
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=3c3c1f1416392382faa0238e76a70d7810aab2ef
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 3c3c1f1416392382faa0238e76a70d7810aab2ef
        # save the attached .config 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 drivers/infiniband/core/

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 >>):

>> drivers/infiniband/core/nldev.c:2543:1: warning: unused function '__chk_RDMA_NL_NLDEV'
   MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);
   ^
   include/rdma/rdma_netlink.h:33:21: note: expanded from macro 'MODULE_ALIAS_RDMA_NETLINK'
   static inline void __chk_##_index(void) ^
   <scratch space>:118:1: note: expanded from here
   __chk_RDMA_NL_NLDEV
   ^
   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,drivers/infiniband/core/.nldev.o.d -nostdinc -isystem /opt/cross/clang-627868263c/lib/clang/14.0.0/include -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=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 -fstack-protector-strong -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -pg -falign-functions=64 -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 -fsanitize=array-bounds -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable -fsanitize=bool -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -I drivers/infiniband/core -I ./drivers/infiniband/core -ffunction-sections -fdata-sections -DKBUILD_MODFILE="drivers/infiniband/core/ib_core" -DKBUILD_BASENAME="nldev" -DKBUILD_MODNAME="ib_core" -D__KBUILD_MODNAME=kmod_ib_core -c -o drivers/infiniband/core/nldev.o drivers/infiniband/core/nldev.c
   1. <eof> parser at end of file
   2. Code generation
   3. Running pass 'Function Pass Manager' on module 'drivers/infiniband/core/nldev.c'.
   4. Running pass 'Mips Assembly Printer' on function '@nldev_stat_set_counter_dynamic_doit'
   #0 0x000055f58d3ccb5f Signals.cpp:0:0
   #1 0x000055f58d3caa7c llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-627868263c/bin/clang-14+0x3294a7c)
   #2 0x000055f58d319387 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-627868263c/bin/clang-14+0x31e3387)
   #3 0x000055f58d3c312e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-627868263c/bin/clang-14+0x328d12e)
   #4 0x000055f58b0fb54b (/opt/cross/clang-627868263c/bin/clang-14+0xfc554b)
   #5 0x000055f58d31fddc llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-627868263c/bin/clang-14+0x31e9ddc)
   #6 0x000055f58df9a896 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-627868263c/bin/clang-14+0x3e64896)
   #7 0x000055f58df95ff6 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-627868263c/bin/clang-14+0x3e5fff6)
   #8 0x000055f58bb337de llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-627868263c/bin/clang-14+0x19fd7de)
   #9 0x000055f58c76a84d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
   #10 0x000055f58cb8fae7 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-627868263c/bin/clang-14+0x2a59ae7)
   #11 0x000055f58cb8fc61 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-627868263c/bin/clang-14+0x2a59c61)
   #12 0x000055f58cb90f3f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-627868263c/bin/clang-14+0x2a5af3f)
   #13 0x000055f58d6b633a 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-627868263c/bin/clang-14+0x358033a)
   #14 0x000055f58e322783 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-627868263c/bin/clang-14+0x41ec783)
   #15 0x000055f58ee12229 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-627868263c/bin/clang-14+0x4cdc229)
   #16 0x000055f58e3215ef clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-627868263c/bin/clang-14+0x41eb5ef)
   #17 0x000055f58dcb7371 clang::FrontendAction::Execute() (/opt/cross/clang-627868263c/bin/clang-14+0x3b81371)
   #18 0x000055f58dc4f97a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-627868263c/bin/clang-14+0x3b1997a)
   #19 0x000055f58dd802db (/opt/cross/clang-627868263c/bin/clang-14+0x3c4a2db)
   #20 0x000055f58b0fc284 cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-627868263c/bin/clang-14+0xfc6284)
   #21 0x000055f58b0f97db ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
   #22 0x000055f58daf52a5 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 0x000055f58d319243 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-627868263c/bin/clang-14+0x31e3243)
   #24 0x000055f58daf5ba7 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 0x000055f58daccf37 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-627868263c/bin/clang-14+0x3996f37)
   #26 0x000055f58dacd917 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-627868263c/bin/clang-14+0x3997917)
   #27 0x000055f58dad6c59 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-627868263c/bin/clang-14+0x39a0c59)
   #28 0x000055f58b024c9f main (/opt/cross/clang-627868263c/bin/clang-14+0xeeec9f)
   #29 0x00007f769e3e3d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
   #30 0x000055f58b0f92fa _start (/opt/cross/clang-627868263c/bin/clang-14+0xfc32fa)
   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 627868263cd4d57c230b61904483a3dad9e1a1da)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-627868263c/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts source usr


vim +/__chk_RDMA_NL_NLDEV +2543 drivers/infiniband/core/nldev.c

e3bf14bdc17a8e Jason Gunthorpe 2017-08-14  2542  
e3bf14bdc17a8e Jason Gunthorpe 2017-08-14 @2543  MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);

:::::: The code at line 2543 was first introduced by commit
:::::: e3bf14bdc17a8e917f337760cc7cacf3232d7dbc rdma: Autoload netlink client modules

:::::: TO: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
:::::: CC: Doug Ledford <dledford@redhat.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38366 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-06  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06  7:33 drivers/infiniband/core/nldev.c:2543:1: warning: unused function '__chk_RDMA_NL_NLDEV' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).