All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:sep24 17/19] drivers/gpu/drm/drm_print.c:431:2: error: implicit declaration of function 'dynamic_debug_register_tracer'
@ 2021-10-01  3:44 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-01  3:44 UTC (permalink / raw)
  Cc: kbuild-all, llvm

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

TO: Jim Cromie <jim.cromie@gmail.com>

tree:   https://github.com/jimc/linux.git sep24
head:   966492eb2b51e68f8f7ff371045af71b412af281
commit: c53388c714bbeee9d84e098b1128d77961c39ecc [17/19] drm_print: add tracefs initialization and callback RFC
config: hexagon-randconfig-r011-20210930 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 962e503cc8bc411f7523cc393acae8aae425b1c4)
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
        # https://github.com/jimc/linux/commit/c53388c714bbeee9d84e098b1128d77961c39ecc
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc sep24
        git checkout c53388c714bbeee9d84e098b1128d77961c39ecc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

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

All errors (new ones prefixed by >>):

   arch/hexagon/kernel/signal.c:224:16: warning: no previous prototype for function 'sys_rt_sigreturn'
   asmlinkage int sys_rt_sigreturn(void)
   ^
   arch/hexagon/kernel/signal.c:224:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage int sys_rt_sigreturn(void)
   ^
   static
   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,arch/hexagon/kernel/.signal.o.d -nostdinc -isystem /opt/cross/clang-962e503cc8/lib/clang/14.0.0/include -Iarch/hexagon/include -I./arch/hexagon/include/generated -Iinclude -I./include -Iarch/hexagon/include/uapi -I./arch/hexagon/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__ -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=hexagon-linux -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -G0 -fno-short-enums -mlong-calls -ffixed-r19 -DTHREADINFO_REG=r19 -D__linux__ -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=1024 -fno-stack-protector -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -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 arch/hexagon/kernel -I ./arch/hexagon/kernel -DKBUILD_MODFILE="arch/hexagon/kernel/signal" -DKBUILD_BASENAME="signal" -DKBUILD_MODNAME="signal" -D__KBUILD_MODNAME=kmod_signal -c -o arch/hexagon/kernel/signal.o arch/hexagon/kernel/signal.c
   1. <eof> parser at end of file
   2. Code generation
   3. Running pass 'Function Pass Manager' on module 'arch/hexagon/kernel/signal.c'.
   4. Running pass 'Optimize addressing mode of load/store' on function '@sys_rt_sigreturn'
   #0 0x000055801703c6bf Signals.cpp:0:0
   #1 0x000055801703a5cc llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-962e503cc8/bin/clang-14+0x34695cc)
   #2 0x0000558016f904f8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
   #3 0x00007f4b812f1140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
   #4 0x0000558015710b9d (anonymous namespace)::HexagonOptAddrMode::runOnMachineFunction(llvm::MachineFunction&) (.part.401) HexagonOptAddrMode.cpp:0:0
   #5 0x00005580163f672d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
   #6 0x0000558016811997 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x2c40997)
   #7 0x0000558016811b11 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x2c40b11)
   #8 0x0000558016812d8f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x2c41d8f)
   #9 0x000055801731f0e2 (anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
   #10 0x0000558017322a8d 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-962e503cc8/bin/clang-14+0x3751a8d)
   #11 0x0000558017f8ebfa clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x43bdbfa)
   #12 0x0000558018a5f409 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-962e503cc8/bin/clang-14+0x4e8e409)
   #13 0x0000558017f8db7f clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-962e503cc8/bin/clang-14+0x43bcb7f)
   #14 0x000055801792d841 clang::FrontendAction::Execute() (/opt/cross/clang-962e503cc8/bin/clang-14+0x3d5c841)
   #15 0x00005580178c6b7b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x3cf5b7b)
   #16 0x00005580179f5da3 (/opt/cross/clang-962e503cc8/bin/clang-14+0x3e24da3)
   #17 0x0000558014db4cc4 cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-962e503cc8/bin/clang-14+0x11e3cc4)
   #18 0x0000558014db205b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
   #19 0x0000558017767be5 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
   #20 0x0000558016f905f3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-962e503cc8/bin/clang-14+0x33bf5f3)
   #21 0x00005580177684f7 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
   #22 0x000055801773fd37 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-962e503cc8/bin/clang-14+0x3b6ed37)
   #23 0x0000558017740717 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-962e503cc8/bin/clang-14+0x3b6f717)
   #24 0x0000558017749639 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x3b78639)
   #25 0x0000558014cdeaca main (/opt/cross/clang-962e503cc8/bin/clang-14+0x110daca)
   #26 0x00007f4b80dead0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
   #27 0x0000558014db1b7a _start (/opt/cross/clang-962e503cc8/bin/clang-14+0x11e0b7a)
>> clang-14: error: clang frontend command failed with exit code 139 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project 962e503cc8bc411f7523cc393acae8aae425b1c4)
   Target: hexagon-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-962e503cc8/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts source usr
--
>> drivers/gpu/drm/drm_print.c:431:2: error: implicit declaration of function 'dynamic_debug_register_tracer' [-Werror,-Wimplicit-function-declaration]
           dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
           ^
>> drivers/gpu/drm/drm_print.c:436:3: error: implicit declaration of function 'dynamic_debug_unregister_tracer' [-Werror,-Wimplicit-function-declaration]
                   dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
                   ^
   drivers/gpu/drm/drm_print.c:436:3: note: did you mean 'dynamic_debug_register_tracer'?
   drivers/gpu/drm/drm_print.c:431:2: note: 'dynamic_debug_register_tracer' declared here
           dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
           ^
   drivers/gpu/drm/drm_print.c:480:2: error: implicit declaration of function 'dynamic_debug_unregister_tracer' [-Werror,-Wimplicit-function-declaration]
           dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
           ^
   3 errors generated.


vim +/dynamic_debug_register_tracer +431 drivers/gpu/drm/drm_print.c

   416	
   417	/**
   418	 * drm_trace_init - initializes the drm trace array
   419	 *
   420	 * This function fetches (or creates) the drm trace array. This should be called
   421	 * once on drm subsystem creation and matched with drm_trace_cleanup().
   422	 */
   423	void drm_trace_init(void)
   424	{
   425		int ret;
   426	
   427		trace_arr = trace_array_get_by_name("drm");
   428		if (!trace_arr)
   429			return;
   430	
 > 431		dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
   432	
   433		ret = trace_array_init_printk(trace_arr);
   434		if (ret) {
   435			drm_trace_cleanup();
 > 436			dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
   437		}
   438	}
   439	EXPORT_SYMBOL(drm_trace_init);
   440	

---
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: 21187 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [jimc:sep24 17/19] drivers/gpu/drm/drm_print.c:431:2: error: implicit declaration of function 'dynamic_debug_register_tracer'
@ 2021-10-01  3:44 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-01  3:44 UTC (permalink / raw)
  To: kbuild-all

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

TO: Jim Cromie <jim.cromie@gmail.com>

tree:   https://github.com/jimc/linux.git sep24
head:   966492eb2b51e68f8f7ff371045af71b412af281
commit: c53388c714bbeee9d84e098b1128d77961c39ecc [17/19] drm_print: add tracefs initialization and callback RFC
config: hexagon-randconfig-r011-20210930 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 962e503cc8bc411f7523cc393acae8aae425b1c4)
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
        # https://github.com/jimc/linux/commit/c53388c714bbeee9d84e098b1128d77961c39ecc
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc sep24
        git checkout c53388c714bbeee9d84e098b1128d77961c39ecc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

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

All errors (new ones prefixed by >>):

   arch/hexagon/kernel/signal.c:224:16: warning: no previous prototype for function 'sys_rt_sigreturn'
   asmlinkage int sys_rt_sigreturn(void)
   ^
   arch/hexagon/kernel/signal.c:224:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage int sys_rt_sigreturn(void)
   ^
   static
   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,arch/hexagon/kernel/.signal.o.d -nostdinc -isystem /opt/cross/clang-962e503cc8/lib/clang/14.0.0/include -Iarch/hexagon/include -I./arch/hexagon/include/generated -Iinclude -I./include -Iarch/hexagon/include/uapi -I./arch/hexagon/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__ -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=hexagon-linux -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -G0 -fno-short-enums -mlong-calls -ffixed-r19 -DTHREADINFO_REG=r19 -D__linux__ -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=1024 -fno-stack-protector -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -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 arch/hexagon/kernel -I ./arch/hexagon/kernel -DKBUILD_MODFILE="arch/hexagon/kernel/signal" -DKBUILD_BASENAME="signal" -DKBUILD_MODNAME="signal" -D__KBUILD_MODNAME=kmod_signal -c -o arch/hexagon/kernel/signal.o arch/hexagon/kernel/signal.c
   1. <eof> parser at end of file
   2. Code generation
   3. Running pass 'Function Pass Manager' on module 'arch/hexagon/kernel/signal.c'.
   4. Running pass 'Optimize addressing mode of load/store' on function '@sys_rt_sigreturn'
   #0 0x000055801703c6bf Signals.cpp:0:0
   #1 0x000055801703a5cc llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-962e503cc8/bin/clang-14+0x34695cc)
   #2 0x0000558016f904f8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
   #3 0x00007f4b812f1140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
   #4 0x0000558015710b9d (anonymous namespace)::HexagonOptAddrMode::runOnMachineFunction(llvm::MachineFunction&) (.part.401) HexagonOptAddrMode.cpp:0:0
   #5 0x00005580163f672d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
   #6 0x0000558016811997 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x2c40997)
   #7 0x0000558016811b11 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x2c40b11)
   #8 0x0000558016812d8f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x2c41d8f)
   #9 0x000055801731f0e2 (anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
   #10 0x0000558017322a8d 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-962e503cc8/bin/clang-14+0x3751a8d)
   #11 0x0000558017f8ebfa clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x43bdbfa)
   #12 0x0000558018a5f409 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-962e503cc8/bin/clang-14+0x4e8e409)
   #13 0x0000558017f8db7f clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-962e503cc8/bin/clang-14+0x43bcb7f)
   #14 0x000055801792d841 clang::FrontendAction::Execute() (/opt/cross/clang-962e503cc8/bin/clang-14+0x3d5c841)
   #15 0x00005580178c6b7b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x3cf5b7b)
   #16 0x00005580179f5da3 (/opt/cross/clang-962e503cc8/bin/clang-14+0x3e24da3)
   #17 0x0000558014db4cc4 cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-962e503cc8/bin/clang-14+0x11e3cc4)
   #18 0x0000558014db205b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
   #19 0x0000558017767be5 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
   #20 0x0000558016f905f3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-962e503cc8/bin/clang-14+0x33bf5f3)
   #21 0x00005580177684f7 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
   #22 0x000055801773fd37 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-962e503cc8/bin/clang-14+0x3b6ed37)
   #23 0x0000558017740717 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-962e503cc8/bin/clang-14+0x3b6f717)
   #24 0x0000558017749639 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-962e503cc8/bin/clang-14+0x3b78639)
   #25 0x0000558014cdeaca main (/opt/cross/clang-962e503cc8/bin/clang-14+0x110daca)
   #26 0x00007f4b80dead0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
   #27 0x0000558014db1b7a _start (/opt/cross/clang-962e503cc8/bin/clang-14+0x11e0b7a)
>> clang-14: error: clang frontend command failed with exit code 139 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project 962e503cc8bc411f7523cc393acae8aae425b1c4)
   Target: hexagon-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-962e503cc8/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts source usr
--
>> drivers/gpu/drm/drm_print.c:431:2: error: implicit declaration of function 'dynamic_debug_register_tracer' [-Werror,-Wimplicit-function-declaration]
           dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
           ^
>> drivers/gpu/drm/drm_print.c:436:3: error: implicit declaration of function 'dynamic_debug_unregister_tracer' [-Werror,-Wimplicit-function-declaration]
                   dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
                   ^
   drivers/gpu/drm/drm_print.c:436:3: note: did you mean 'dynamic_debug_register_tracer'?
   drivers/gpu/drm/drm_print.c:431:2: note: 'dynamic_debug_register_tracer' declared here
           dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
           ^
   drivers/gpu/drm/drm_print.c:480:2: error: implicit declaration of function 'dynamic_debug_unregister_tracer' [-Werror,-Wimplicit-function-declaration]
           dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
           ^
   3 errors generated.


vim +/dynamic_debug_register_tracer +431 drivers/gpu/drm/drm_print.c

   416	
   417	/**
   418	 * drm_trace_init - initializes the drm trace array
   419	 *
   420	 * This function fetches (or creates) the drm trace array. This should be called
   421	 * once on drm subsystem creation and matched with drm_trace_cleanup().
   422	 */
   423	void drm_trace_init(void)
   424	{
   425		int ret;
   426	
   427		trace_arr = trace_array_get_by_name("drm");
   428		if (!trace_arr)
   429			return;
   430	
 > 431		dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
   432	
   433		ret = trace_array_init_printk(trace_arr);
   434		if (ret) {
   435			drm_trace_cleanup();
 > 436			dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
   437		}
   438	}
   439	EXPORT_SYMBOL(drm_trace_init);
   440	

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [jimc:sep24 17/19] drivers/gpu/drm/drm_print.c:431:2: error: implicit declaration of function 'dynamic_debug_register_tracer'
@ 2021-10-01 10:35 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-01 10:35 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/jimc/linux.git sep24
head:   966492eb2b51e68f8f7ff371045af71b412af281
commit: c53388c714bbeee9d84e098b1128d77961c39ecc [17/19] drm_print: add tracefs initialization and callback RFC
config: x86_64-randconfig-r036-20210930 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/jimc/linux/commit/c53388c714bbeee9d84e098b1128d77961c39ecc
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc sep24
        git checkout c53388c714bbeee9d84e098b1128d77961c39ecc
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_print.c: In function 'drm_trace_init':
>> drivers/gpu/drm/drm_print.c:431:2: error: implicit declaration of function 'dynamic_debug_register_tracer' [-Werror=implicit-function-declaration]
     431 |  dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/drm_print.c:436:3: error: implicit declaration of function 'dynamic_debug_unregister_tracer' [-Werror=implicit-function-declaration]
     436 |   dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/dynamic_debug_register_tracer +431 drivers/gpu/drm/drm_print.c

   416	
   417	/**
   418	 * drm_trace_init - initializes the drm trace array
   419	 *
   420	 * This function fetches (or creates) the drm trace array. This should be called
   421	 * once on drm subsystem creation and matched with drm_trace_cleanup().
   422	 */
   423	void drm_trace_init(void)
   424	{
   425		int ret;
   426	
   427		trace_arr = trace_array_get_by_name("drm");
   428		if (!trace_arr)
   429			return;
   430	
 > 431		dynamic_debug_register_tracer(THIS_MODULE, drm_trace_printvaf);
   432	
   433		ret = trace_array_init_printk(trace_arr);
   434		if (ret) {
   435			drm_trace_cleanup();
 > 436			dynamic_debug_unregister_tracer(THIS_MODULE, drm_trace_printvaf);
   437		}
   438	}
   439	EXPORT_SYMBOL(drm_trace_init);
   440	

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-01 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01  3:44 [jimc:sep24 17/19] drivers/gpu/drm/drm_print.c:431:2: error: implicit declaration of function 'dynamic_debug_register_tracer' kernel test robot
2021-10-01  3:44 ` kernel test robot
2021-10-01 10:35 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.