[linux-next:master 4800/6873] drivers/usb/host/ehci-omap.c:64:19: warning: unused function 'ehci_read'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arnd,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   088fb7eff3496e0f61fdf68bda89b81a4d0a4434
commit: 11e002924ddb6f12638532331195a8ab09bbbf7e [4800/6873] usb: omap: avoid mach/*.h headers
config: mips-randconfig-r003-20220426 (https://download.01.org/0day-ci/archive/20220426/202204262345.EXnHaFKI-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1cddcfdc3c683b393df1a5c9063252eb60e52818)
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/next/linux-next.git/commit/?id=11e002924ddb6f12638532331195a8ab09bbbf7e
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 11e002924ddb6f12638532331195a8ab09bbbf7e
        # 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 drivers/usb/host/ fs/

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

All warnings (new ones prefixed by >>):

>> drivers/usb/host/ehci-omap.c:64:19: warning: unused function 'ehci_read'
   static inline u32 ehci_read(void __iomem u32 reg)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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,drivers/usb/host/.ehci-omap.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=0xffffffff80060000 -DLINKER_LOAD_ADDRESS=0x80060000 -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=mips32r2 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-ath79 -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 -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 drivers/usb/host -I ./drivers/usb/host -DMODULE -mlong-calls -DKBUILD_BASENAME="ehci_omap" -DKBUILD_MODNAME="ehci_omap" -D__KBUILD_MODNAME=kmod_ehci_omap -c -o drivers/usb/host/ehci-omap.o drivers/usb/host/ehci-omap.c
   1. <eof> parser at end of file
   2. Code generation
   3. Running pass 'Function Pass Manager' on module 'drivers/usb/host/ehci-omap.c'.
   4. Running pass 'Mips Assembly Printer' on function '@ehci_hcd_omap_probe'
   #0 0x000056015b6d9a2f Signals.cpp:0:0
   #1 0x000056015b6d7854 llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x34bf854)
   #2 0x000056015b616cf7 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x33fecf7)
   #3 0x000056015b6cfe8e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x34b7e8e)
   #4 0x00005601592d95db (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x10c15db)
   #5 0x000056015b61d81c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x340581c)
   #6 0x000056015c353a30 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x413ba30)
   #7 0x000056015c34f932 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x4137932)
   #8 0x0000560159d67f77 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x1b4ff77)
   #9 0x000056015aa49f8d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
   #10 0x000056015ae90597 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x2c78597)
   #11 0x000056015ae90711 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x2c78711)
   #12 0x000056015ae9128f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x2c7928f)
   #13 0x000056015ba0434f 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-1cddcfdc3c/bin/clang-15+0x37ec34f)
   #14 0x000056015c678e11 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x4460e11)
   #15 0x000056015d1e76b1 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x4fcf6b1)
   #16 0x000056015c6784d5 clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x44604d5)
   #17 0x000056015c067be1 clang::FrontendAction::Execute() (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3e4fbe1)
   #18 0x000056015bffc5aa clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3de45aa)
   #19 0x000056015c12f2db (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3f172db)
   #20 0x00005601592dab8c cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x10c2b8c)
   #21 0x00005601592d785b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
   #22 0x000056015be8d5e5 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 0x000056015b616bb3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x33febb3)
   #24 0x000056015be8dede 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 0x000056015be61757 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3c49757)
   #26 0x000056015be62137 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3c4a137)
   #27 0x000056015be6bc59 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3c53c59)
   #28 0x0000560159223a0f main (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x100ba0f)
   #29 0x00007f54c39607fd __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x237fd)
   #30 0x00005601592d737a _start (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x10bf37a)
   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 1cddcfdc3c683b393df1a5c9063252eb60e52818)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-1cddcfdc3c/bin
   clang-15: note: diagnostic msg:
   Makefile arch drivers fs include kernel nr_bisected scripts source usr
--
>> drivers/usb/host/ehci-omap.c:64:19: warning: unused function 'ehci_read'
   static inline u32 ehci_read(void __iomem u32 reg)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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,drivers/usb/host/.ehci-omap.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=0xffffffff80060000 -DLINKER_LOAD_ADDRESS=0x80060000 -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=mips32r2 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-ath79 -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 -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 -DMODULE -mlong-calls -DKBUILD_BASENAME="ehci_omap" -DKBUILD_MODNAME="ehci_omap" -D__KBUILD_MODNAME=kmod_ehci_omap -c -o drivers/usb/host/ehci-omap.o drivers/usb/host/ehci-omap.c
   1. <eof> parser at end of file
   2. Code generation
   3. Running pass 'Function Pass Manager' on module 'drivers/usb/host/ehci-omap.c'.
   4. Running pass 'Mips Assembly Printer' on function '@ehci_hcd_omap_probe'
   #0 0x0000558707de5a2f Signals.cpp:0:0
   #1 0x0000558707de3854 llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x34bf854)
   #2 0x0000558707d22cf7 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x33fecf7)
   #3 0x0000558707ddbe8e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x34b7e8e)
   #4 0x00005587059e55db (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x10c15db)
   #5 0x0000558707d2981c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x340581c)
   #6 0x0000558708a5fa30 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x413ba30)
   #7 0x0000558708a5b932 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x4137932)
   #8 0x0000558706473f77 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x1b4ff77)
   #9 0x0000558707155f8d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
   #10 0x000055870759c597 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x2c78597)
   #11 0x000055870759c711 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x2c78711)
   #12 0x000055870759d28f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x2c7928f)
   #13 0x000055870811034f 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-1cddcfdc3c/bin/clang-15+0x37ec34f)
   #14 0x0000558708d84e11 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x4460e11)
   #15 0x00005587098f36b1 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x4fcf6b1)
   #16 0x0000558708d844d5 clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x44604d5)
   #17 0x0000558708773be1 clang::FrontendAction::Execute() (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3e4fbe1)
   #18 0x00005587087085aa clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3de45aa)
   #19 0x000055870883b2db (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3f172db)
   #20 0x00005587059e6b8c cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x10c2b8c)
   #21 0x00005587059e385b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
   #22 0x00005587085995e5 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 0x0000558707d22bb3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x33febb3)
   #24 0x0000558708599ede 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 0x000055870856d757 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3c49757)
   #26 0x000055870856e137 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3c4a137)
   #27 0x0000558708577c59 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x3c53c59)
   #28 0x000055870592fa0f main (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x100ba0f)
   #29 0x00007f337b9677fd __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x237fd)
   #30 0x00005587059e337a _start (/opt/cross/clang-1cddcfdc3c/bin/clang-15+0x10bf37a)
   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 1cddcfdc3c683b393df1a5c9063252eb60e52818)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-1cddcfdc3c/bin
   clang-15: note: diagnostic msg:
   Makefile arch drivers fs include kernel nr_bisected scripts source usr


vim +/ehci_read +64 drivers/usb/host/ehci-omap.c

54ab2b02ef6a45 Felipe Balbi      2009-10-14  63  
19403165c272cc Keshava Munegowda 2011-03-01 @64  static inline u32 ehci_read(void __iomem *base, u32 reg)
54ab2b02ef6a45 Felipe Balbi      2009-10-14  65  {
54ab2b02ef6a45 Felipe Balbi      2009-10-14  66  	return __raw_readl(base + reg);
54ab2b02ef6a45 Felipe Balbi      2009-10-14  67  }
54ab2b02ef6a45 Felipe Balbi      2009-10-14  68  

:::::: The code at line 64 was first introduced by commit
:::::: 19403165c272cc4ed00c97973e7271714b009708 usb: host: omap: ehci and ohci simplification

:::::: TO: Keshava Munegowda <keshava_mgowda@xxxxxx>
:::::: CC: Felipe Balbi <balbi@xxxxxx>

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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux