Content-Type: multipart/mixed; boundary="===============1263744816455790013==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v1 1/5] nvmem: core: Remove unused devm_nvmem_unregister() Date: Thu, 06 Jan 2022 09:11:47 +0800 Message-ID: <202201060932.tcQFIVfQ-lkp@intel.com> In-Reply-To: <20220104133843.44272-1-andriy.shevchenko@linux.intel.com> List-Id: --===============1263744816455790013== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Andy, I love your patch! Perhaps something to improve: [auto build test WARNING on mtd/mtd/next] [also build test WARNING on mtd/mtd/fixes char-misc/char-misc-testing linus= /master v5.16-rc8 next-20220105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/nvmem-core= -Remove-unused-devm_nvmem_unregister/20220104-213933 base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/n= ext config: mips-randconfig-r002-20220105 (https://download.01.org/0day-ci/arch= ive/20220106/202201060932.tcQFIVfQ-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e3= 0ed3acad794dd0aec400e617daffc6cc3d) reproduce (this is a W=3D1 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/0day-ci/linux/commit/7877de3d47433a75d2beea38b= 696b3c4fde62082 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Andy-Shevchenko/nvmem-core-Remove-= unused-devm_nvmem_unregister/20220104-213933 git checkout 7877de3d47433a75d2beea38b696b3c4fde62082 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash drivers/nvmem/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/nvmem/core.c:946:12: warning: unused function 'devm_nvmem_match' static int devm_nvmem_match(struct device void void ^ fatal error: error in backend: Nested variants found in inline asm strin= g: ' .set push .set mips64r2 .if ( 0x00 ) !=3D -1)) 0x00 ) !=3D -1)) : ($( static struct ftrace_branc= h_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_= branch"))) __if_trace =3D $( .func =3D __func__, .file =3D "arch/mips/inclu= de/asm/atomic.h", .line =3D 157, $); 0x00 ) !=3D -1)) : $))) ) && ( 0 ); .s= et push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif 1: ll $1, $2 # atomic_fetch_sub subu $0, $1, $3 sc $0, $2 beqz $0, 1b .set pop move $0, $1 ' PLEASE submit a bug report to https://bugs.llvm.org/ and include the cra= sh backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: clang -Wp,-MMD,drivers/nvmem/.core.o.d -nostdinc -= Iarch/mips/include -I./arch/mips/include/generated -Iinclude -I./include -I= arch/mips/include/uapi -I./arch/mips/include/generated/uapi -Iinclude/uapi = -I./include/generated/uapi -include include/linux/compiler-version.h -inclu= de include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERN= EL__ -DVMLINUX_LOAD_ADDRESS=3D0xffffffff84000000 -DLINKER_LOAD_ADDRESS=3D0x= 84000000 -DDATAOFFSET=3D0 -Qunused-arguments -fmacro-prefix-map=3D=3D -DKBU= ILD_EXTRA_WARN1 -Wall -Wundef -Werror=3Dstrict-prototypes -Wno-trigraphs -f= no-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=3Dimplicit-fu= nction-declaration -Werror=3Dimplicit-int -Werror=3Dreturn-type -Wno-format= -security -std=3Dgnu89 --target=3Dmipsel-linux -fintegrated-as -Werror=3Dun= known-warning-option -Werror=3Dignored-optimization-argument -mno-check-zer= o-division -mabi=3D32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -DGAS_= HAS_SET_HARDFLOAT -Wa,-msoft-float -ffreestanding -EL -fno-stack-check -mar= ch=3Dmips32 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/ma= ch-au1x00 -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tab= les -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-pack= ed-member -O2 -Wframe-larger-than=3D1024 -fno-stack-protector -Wimplicit-fa= llthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unus= ed-const-variable -ftrivial-auto-var-init=3Dpattern -fno-stack-clash-protec= tion -pg -falign-functions=3D64 -Wdeclaration-after-statement -Wvla -Wno-po= inter-sign -Wno-array-bounds -fno-strict-overflow -fno-stack-check -Werror= =3Ddate-time -Werror=3Dincompatible-pointer-types -Wextra -Wunused -Wno-unu= sed-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-p= rototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-va= riable -Wunused-const-variable -Wno-missing-field-initializers -Wno-sign-co= mpare -Wno-type-limits -fsanitize=3Darray-bounds -fsanitize=3Dunreachable -= fsanitize=3Dobject-size -fsanitize=3Denum -fsanitize-coverage=3Dtrace-pc -I= drivers/nvmem -I ./drivers/nvmem -ffunction-sections -fdata-sections -DKBU= ILD_MODFILE=3D"drivers/nvmem/nvmem_core" -DKBUILD_BASENAME=3D"core" -DKBUIL= D_MODNAME=3D"nvmem_core" -D__KBUILD_MODNAME=3Dkmod_nvmem_core -c -o drivers= /nvmem/core.o drivers/nvmem/core.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'drivers/nvmem/core.c'. 4. Running pass 'Mips Assembly Printer' on function '@kref_put' #0 0x000055c30463cb3f Signals.cpp:0:0 #1 0x000055c30463aa8c llvm::sys::CleanupOnSignal(unsigned long) (/opt/cr= oss/clang-d5b6e30ed3/bin/clang-14+0x3401a8c) #2 0x000055c30457e667 llvm::CrashRecoveryContext::HandleExit(int) (/opt/= cross/clang-d5b6e30ed3/bin/clang-14+0x3345667) #3 0x000055c30463313e llvm::sys::Process::Exit(int, bool) (/opt/cross/cl= ang-d5b6e30ed3/bin/clang-14+0x33fa13e) #4 0x000055c3022b933b (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x108033= b) #5 0x000055c30458510c llvm::report_fatal_error(llvm::Twine const&, bool)= (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x334c10c) #6 0x000055c3052679b8 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr= const (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x402e9b8) #7 0x000055c305263759 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/c= lang-d5b6e30ed3/bin/clang-14+0x402a759) #8 0x000055c302d1482e llvm::MipsAsmPrinter::runOnMachineFunction(llvm::M= achineFunction&) (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x1adb82e) #9 0x000055c3039ab2fd llvm::MachineFunctionPass::runOnFunction(llvm::Fun= ction&) (.part.53) MachineFunctionPass.cpp:0:0 #10 0x000055c303de3867 llvm::FPPassManager::runOnFunction(llvm::Function= &) (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x2baa867) #11 0x000055c303de39e1 llvm::FPPassManager::runOnModule(llvm::Module&) (= /opt/cross/clang-d5b6e30ed3/bin/clang-14+0x2baa9e1) #12 0x000055c303de4cbf llvm::legacy::PassManagerImpl::run(llvm::Module&)= (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x2babcbf) #13 0x000055c30494e4fa clang::EmitBackendOutput(clang::DiagnosticsEngine= &, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::= TargetOptions const&, clang::LangOptions const&, llvm::StringRef, clang::Ba= ckendAction, std::unique_ptr >) (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x3715= 4fa) #14 0x000055c30557bea3 clang::BackendConsumer::HandleTranslationUnit(cla= ng::ASTContext&) (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x4342ea3) #15 0x000055c30607ffd9 clang::ParseAST(clang::Sema&, bool, bool) (/opt/c= ross/clang-d5b6e30ed3/bin/clang-14+0x4e46fd9) #16 0x000055c30557acff clang::CodeGenAction::ExecuteAction() (/opt/cross= /clang-d5b6e30ed3/bin/clang-14+0x4341cff) #17 0x000055c304f7a001 clang::FrontendAction::Execute() (/opt/cross/clan= g-d5b6e30ed3/bin/clang-14+0x3d41001) #18 0x000055c304f11bda clang::CompilerInstance::ExecuteAction(clang::Fro= ntendAction&) (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x3cd8bda) #19 0x000055c30504307b (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x3e0a0= 7b) #20 0x000055c3022ba084 cc1_main(llvm::ArrayRef::callback_fn >, std::__cxx11::basic_string, std::alloca= tor const::'lambda'()>(long) Job.cpp:0:0 #23 0x000055c30457e523 llvm::CrashRecoveryContext::RunSafely(llvm::funct= ion_ref) (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x3345523) #24 0x000055c304daf40e clang::driver::CC1Command::Execute(llvm::ArrayRef= >, std::__cxx11::basic_string, std::allocator const (.part.216) Job.cpp:0:0 #25 0x000055c304d85ee7 clang::driver::Compilation::ExecuteCommand(clang:= :driver::Command const&, clang::driver::Command const (/opt/cross/clang-d5b= 6e30ed3/bin/clang-14+0x3b4cee7) #26 0x000055c304d868c7 clang::driver::Compilation::ExecuteJobs(clang::dr= iver::JobList const&, llvm::SmallVectorImpl&) const (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x3b4d8c7) #27 0x000055c304d90139 clang::driver::Driver::ExecuteCompilation(clang::= driver::Compilation&, llvm::SmallVectorImpl&) (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x3b57139) #28 0x000055c3021e219f main (/opt/cross/clang-d5b6e30ed3/bin/clang-14+0x= fa919f) #29 0x00007fcd1a9e4d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.= 6+0x26d0a) #30 0x000055c3022b70ea _start (/opt/cross/clang-d5b6e30ed3/bin/clang-14+= 0x107e0ea) 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 d5b6e30ed3acad794dd0a= ec400e617daffc6cc3d) Target: mipsel-unknown-linux Thread model: posix InstalledDir: /opt/cross/clang-d5b6e30ed3/bin clang-14: note: diagnostic msg: Makefile arch drivers include kernel nr_bisected scripts security source= usr vim +/devm_nvmem_match +946 drivers/nvmem/core.c f1f50eca5f9052 Andrey Smirnov 2018-03-09 945 = f1f50eca5f9052 Andrey Smirnov 2018-03-09 @946 static int devm_nvmem_match(= struct device *dev, void *res, void *data) f1f50eca5f9052 Andrey Smirnov 2018-03-09 947 { f1f50eca5f9052 Andrey Smirnov 2018-03-09 948 struct nvmem_device **r =3D= res; f1f50eca5f9052 Andrey Smirnov 2018-03-09 949 = f1f50eca5f9052 Andrey Smirnov 2018-03-09 950 return *r =3D=3D data; f1f50eca5f9052 Andrey Smirnov 2018-03-09 951 } f1f50eca5f9052 Andrey Smirnov 2018-03-09 952 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1263744816455790013==--