kernel/trace/trace_dynevent.c:258:17: warning: unused variable 'entry'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20220114-091212/Yuntao-Wa...
head: a6d78c971730a1847fa557309f42851ca421b71c
commit: a6d78c971730a1847fa557309f42851ca421b71c tracing: Use trace_create_file() to simplify creation of tracefs entries
date: 11 hours ago
config: mips-randconfig-r015-20220113 (https://download.01.org/0day-ci/archive/20220114/202201142023.gC8Ssh5U-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82c8aca93488730ce8f66101e0f3538f14b551dd)
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/0day-ci/linux/commit/a6d78c971730a1847fa557309f42851ca...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20220114-091212/Yuntao-Wang/tracing-Use-trace_create_file-to-simplify-creation-of-tracefs-entry/20220114-002617
git checkout a6d78c971730a1847fa557309f42851ca421b71c
# save the config file 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 kernel/trace/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> kernel/trace/trace_dynevent.c:258:17: warning: unused variable 'entry'
struct dentry
^
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 = 156, $); 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,kernel/trace/.trace_dynevent.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=gnu89 --target=mipsel-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 -EL -fno-stack-check -march=mips32 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-db1x00 -Iarch/mips/include/asm/mach-au1x00 -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 -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -fomit-frame-pointer -fno-stack-clash-protection -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 -I kernel/trace -I ./kernel/trace -ffunction-sections -fdata-sections -DKBUILD_MODFILE="kernel/trace/trace_dynevent" -DKBUILD_BASENAME="trace_dynevent" -DKBUILD_MODNAME="trace_dynevent" -D__KBUILD_MODNAME=kmod_trace_dynevent -c -o kernel/trace/trace_dynevent.o kernel/trace/trace_dynevent.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'kernel/trace/trace_dynevent.c'.
4. Running pass 'Mips Assembly Printer' on function '@trace_event_dyn_try_get_ref'
#0 0x000055d9791aa5cf Signals.cpp:0:0
#1 0x000055d9791a84ac llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-82c8aca934/bin/clang-14+0x340f4ac)
#2 0x000055d9790ec337 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-82c8aca934/bin/clang-14+0x3353337)
#3 0x000055d9791a0b5e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-82c8aca934/bin/clang-14+0x3407b5e)
#4 0x000055d976e1e8bb (/opt/cross/clang-82c8aca934/bin/clang-14+0x10858bb)
#5 0x000055d9790f2dec llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-82c8aca934/bin/clang-14+0x3359dec)
#6 0x000055d979dcfd57 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-82c8aca934/bin/clang-14+0x4036d57)
#7 0x000055d979dcbcb4 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-82c8aca934/bin/clang-14+0x4032cb4)
#8 0x000055d97787af17 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-82c8aca934/bin/clang-14+0x1ae1f17)
#9 0x000055d97851b91d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
#10 0x000055d9789542f7 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-82c8aca934/bin/clang-14+0x2bbb2f7)
#11 0x000055d978954471 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-82c8aca934/bin/clang-14+0x2bbb471)
#12 0x000055d97895574f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-82c8aca934/bin/clang-14+0x2bbc74f)
#13 0x000055d9794b999a 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-82c8aca934/bin/clang-14+0x372099a)
#14 0x000055d97a0e43e3 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-82c8aca934/bin/clang-14+0x434b3e3)
#15 0x000055d97abe8789 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-82c8aca934/bin/clang-14+0x4e4f789)
#16 0x000055d97a0e323f clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-82c8aca934/bin/clang-14+0x434a23f)
#17 0x000055d979ae6c91 clang::FrontendAction::Execute() (/opt/cross/clang-82c8aca934/bin/clang-14+0x3d4dc91)
#18 0x000055d979a7e7ba clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-82c8aca934/bin/clang-14+0x3ce57ba)
#19 0x000055d979baad8b (/opt/cross/clang-82c8aca934/bin/clang-14+0x3e11d8b)
#20 0x000055d976e1f604 cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-82c8aca934/bin/clang-14+0x1086604)
#21 0x000055d976e1cb4b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
#22 0x000055d97991a8d5 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 0x000055d9790ec1f3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-82c8aca934/bin/clang-14+0x33531f3)
#24 0x000055d97991b1ce 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 0x000055d9798f19f7 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-82c8aca934/bin/clang-14+0x3b589f7)
#26 0x000055d9798f23d7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-82c8aca934/bin/clang-14+0x3b593d7)
#27 0x000055d9798fbd19 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-82c8aca934/bin/clang-14+0x3b62d19)
#28 0x000055d976d470df main (/opt/cross/clang-82c8aca934/bin/clang-14+0xfae0df)
#29 0x00007f98e437cd0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
#30 0x000055d976e1c66a _start (/opt/cross/clang-82c8aca934/bin/clang-14+0x108366a)
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 82c8aca93488730ce8f66101e0f3538f14b551dd)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-82c8aca934/bin
clang-14: note: diagnostic msg:
Makefile arch include kernel nr_bisected scripts source usr
vim +/entry +258 kernel/trace/trace_dynevent.c
5448d44c38557f Masami Hiramatsu 2018-11-05 254
5448d44c38557f Masami Hiramatsu 2018-11-05 255 /* Make a tracefs interface for controlling dynamic events */
5448d44c38557f Masami Hiramatsu 2018-11-05 256 static __init int init_dynamic_event(void)
5448d44c38557f Masami Hiramatsu 2018-11-05 257 {
5448d44c38557f Masami Hiramatsu 2018-11-05 @258 struct dentry *entry;
22c36b18263426 Wei Yang 2020-07-12 259 int ret;
5448d44c38557f Masami Hiramatsu 2018-11-05 260
22c36b18263426 Wei Yang 2020-07-12 261 ret = tracing_init_dentry();
22c36b18263426 Wei Yang 2020-07-12 262 if (ret)
5448d44c38557f Masami Hiramatsu 2018-11-05 263 return 0;
5448d44c38557f Masami Hiramatsu 2018-11-05 264
a6d78c971730a1 Yuntao Wang 2022-01-14 265 trace_create_file("dynamic_events", TRACE_MODE_WRITE, NULL,
5448d44c38557f Masami Hiramatsu 2018-11-05 266 NULL, &dynamic_events_ops);
5448d44c38557f Masami Hiramatsu 2018-11-05 267
5448d44c38557f Masami Hiramatsu 2018-11-05 268 return 0;
5448d44c38557f Masami Hiramatsu 2018-11-05 269 }
5448d44c38557f Masami Hiramatsu 2018-11-05 270 fs_initcall(init_dynamic_event);
86c5426baddae9 Tom Zanussi 2020-01-29 271
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[intel-lts:5.10/yocto 16678/20368] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:113:25: warning: suggest braces around empty body in an 'else' statement
by kernel test robot
Hi Wyatt,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: 1941d4b82f36cc6ecc513f3e496ad62726d00514
commit: 42e7487e09a6c68c1e22340048eb99a987e986f5 [16678/20368] drm/amd/display: Add ETW log to dmub_psr_get_state
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220114/202201141941.Xz1wEOGq-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/linux-intel-lts/commit/42e7487e09a6c68c1e2234004...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/yocto
git checkout 42e7487e09a6c68c1e22340048eb99a987e986f5
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/ drivers/gpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c: In function 'dmub_psr_get_state':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:113:25: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
113 | *state, retry_count);
| ^
vim +/else +113 drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c
78
79 /*
80 * Get PSR state from firmware.
81 */
82 static void dmub_psr_get_state(struct dmub_psr *dmub, enum dc_psr_state *state, uint8_t panel_inst)
83 {
84 struct dmub_srv *srv = dmub->ctx->dmub_srv->dmub;
85 uint32_t raw_state = 0;
86 uint32_t retry_count = 0;
87 enum dmub_status status;
88
89 do {
90 // Send gpint command and wait for ack
91 status = dmub_srv_send_gpint_command(srv, DMUB_GPINT__GET_PSR_STATE, panel_inst, 30);
92
93 if (status == DMUB_STATUS_OK) {
94 // GPINT was executed, get response
95 dmub_srv_get_gpint_response(srv, &raw_state);
96 *state = convert_psr_state(raw_state);
97 } else
98 // Return invalid state when GPINT times out
99 *state = PSR_STATE_INVALID;
100
101 } while (++retry_count <= 1000 && *state == PSR_STATE_INVALID);
102
103 // Assert if max retry hit
104 if (retry_count >= 1000 && *state == PSR_STATE_INVALID) {
105 ASSERT(0);
106 DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_ERROR,
107 WPP_BIT_FLAG_Firmware_PsrState,
108 "Unable to get PSR state from FW.");
109 } else
110 DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_VERBOSE,
111 WPP_BIT_FLAG_Firmware_PsrState,
112 "Got PSR state from FW. PSR state: %d, Retry count: %d",
> 113 *state, retry_count);
114 }
115
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[intel-lts:5.10/yocto 1/1] include/linux/highmem-internal.h:63:9: error: implicit declaration of function '__kmap_local_page_prot'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: 172b4cf64e47fcf419335e208331e77b65578223
commit: 172b4cf64e47fcf419335e208331e77b65578223 [1/1] Merge branch 'my/v5.10.65' into lts2020/yocto
config: powerpc-randconfig-r026-20220114 (https://download.01.org/0day-ci/archive/20220114/202201141954.5HWBw38j-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82c8aca93488730ce8f66101e0f3538f14b551dd)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/intel/linux-intel-lts/commit/172b4cf64e47fcf419335e208...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/yocto
git checkout 172b4cf64e47fcf419335e208331e77b65578223
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:14:
>> include/linux/highmem-internal.h:63:9: error: implicit declaration of function '__kmap_local_page_prot' [-Werror,-Wimplicit-function-declaration]
return __kmap_local_page_prot(page, kmap_prot);
^
include/linux/highmem-internal.h:63:9: note: did you mean 'kmap_local_page'?
include/linux/highmem-internal.h:61:21: note: 'kmap_local_page' declared here
static inline void *kmap_local_page(struct page *page)
^
include/linux/highmem-internal.h:63:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
return __kmap_local_page_prot(page, kmap_prot);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/highmem-internal.h:68:9: error: implicit declaration of function '__kmap_local_page_prot' [-Werror,-Wimplicit-function-declaration]
return __kmap_local_page_prot(page, prot);
^
include/linux/highmem-internal.h:68:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
return __kmap_local_page_prot(page, prot);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/highmem-internal.h:73:9: error: implicit declaration of function '__kmap_local_pfn_prot' [-Werror,-Wimplicit-function-declaration]
return __kmap_local_pfn_prot(pfn, kmap_prot);
^
include/linux/highmem-internal.h:73:9: note: did you mean 'kmap_local_page_prot'?
include/linux/highmem-internal.h:66:21: note: 'kmap_local_page_prot' declared here
static inline void *kmap_local_page_prot(struct page *page, pgprot_t prot)
^
include/linux/highmem-internal.h:73:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
return __kmap_local_pfn_prot(pfn, kmap_prot);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/highmem-internal.h:78:2: error: implicit declaration of function 'kunmap_local_indexed' [-Werror,-Wimplicit-function-declaration]
kunmap_local_indexed(vaddr);
^
include/linux/highmem-internal.h:85:9: error: implicit declaration of function '__kmap_local_page_prot' [-Werror,-Wimplicit-function-declaration]
return __kmap_local_page_prot(page, prot);
^
include/linux/highmem-internal.h:85:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
return __kmap_local_page_prot(page, prot);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/highmem-internal.h:97:9: error: implicit declaration of function '__kmap_local_pfn_prot' [-Werror,-Wimplicit-function-declaration]
return __kmap_local_pfn_prot(pfn, kmap_prot);
^
include/linux/highmem-internal.h:97:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
return __kmap_local_pfn_prot(pfn, kmap_prot);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/highmem-internal.h:102:2: error: implicit declaration of function 'kunmap_local_indexed' [-Werror,-Wimplicit-function-declaration]
kunmap_local_indexed(addr);
^
5 warnings and 7 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1215: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/__kmap_local_page_prot +63 include/linux/highmem-internal.h
d3dd1f7da10427 Thomas Gleixner 2020-11-03 60
4630d896d87f9b Thomas Gleixner 2020-11-18 61 static inline void *kmap_local_page(struct page *page)
4630d896d87f9b Thomas Gleixner 2020-11-18 62 {
4630d896d87f9b Thomas Gleixner 2020-11-18 @63 return __kmap_local_page_prot(page, kmap_prot);
4630d896d87f9b Thomas Gleixner 2020-11-18 64 }
4630d896d87f9b Thomas Gleixner 2020-11-18 65
4630d896d87f9b Thomas Gleixner 2020-11-18 66 static inline void *kmap_local_page_prot(struct page *page, pgprot_t prot)
4630d896d87f9b Thomas Gleixner 2020-11-18 67 {
4630d896d87f9b Thomas Gleixner 2020-11-18 68 return __kmap_local_page_prot(page, prot);
4630d896d87f9b Thomas Gleixner 2020-11-18 69 }
4630d896d87f9b Thomas Gleixner 2020-11-18 70
4630d896d87f9b Thomas Gleixner 2020-11-18 71 static inline void *kmap_local_pfn(unsigned long pfn)
4630d896d87f9b Thomas Gleixner 2020-11-18 72 {
4630d896d87f9b Thomas Gleixner 2020-11-18 @73 return __kmap_local_pfn_prot(pfn, kmap_prot);
4630d896d87f9b Thomas Gleixner 2020-11-18 74 }
4630d896d87f9b Thomas Gleixner 2020-11-18 75
4630d896d87f9b Thomas Gleixner 2020-11-18 76 static inline void __kunmap_local(void *vaddr)
4630d896d87f9b Thomas Gleixner 2020-11-18 77 {
4630d896d87f9b Thomas Gleixner 2020-11-18 @78 kunmap_local_indexed(vaddr);
4630d896d87f9b Thomas Gleixner 2020-11-18 79 }
4630d896d87f9b Thomas Gleixner 2020-11-18 80
:::::: The code at line 63 was first introduced by commit
:::::: 4630d896d87f9baf307ea94a52b159fad69eadc4 mm/highmem: Provide kmap_local*
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Junxiao Chang <junxiao.chang(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4343: warning: expecting prototype for Return PCON's post FRL link training supported BW if its non(). Prototype was for intersect_frl_link_bw_support() instead
by kernel test robot
Hi Fangzhi,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fb3b0673b7d5b477ed104949450cd511337ba3c6
commit: c022375ae0955b6d97ec438d658ab43a857a010f drm/amd/display: Add DP-HDMI FRL PCON Support in DC
date: 6 weeks ago
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220114/202201141715.OhMqGKge-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c022375ae0955b6d97ec438d658ab43a857a010f
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4343: warning: Function parameter or member 'max_supported_frl_bw_in_kbps' not described in 'intersect_frl_link_bw_support'
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4343: warning: Function parameter or member 'hdmi_encoded_link_bw' not described in 'intersect_frl_link_bw_support'
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4343: warning: expecting prototype for Return PCON's post FRL link training supported BW if its non(). Prototype was for intersect_frl_link_bw_support() instead
vim +4343 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c
4336
4337 /**
4338 * Return PCON's post FRL link training supported BW if its non-zero, otherwise return max_supported_frl_bw.
4339 */
4340 static uint32_t intersect_frl_link_bw_support(
4341 const uint32_t max_supported_frl_bw_in_kbps,
4342 const union hdmi_encoded_link_bw hdmi_encoded_link_bw)
> 4343 {
4344 uint32_t supported_bw_in_kbps = max_supported_frl_bw_in_kbps;
4345
4346 // HDMI_ENCODED_LINK_BW bits are only valid if HDMI Link Configuration bit is 1 (FRL mode)
4347 if (hdmi_encoded_link_bw.bits.FRL_MODE) {
4348 if (hdmi_encoded_link_bw.bits.BW_48Gbps)
4349 supported_bw_in_kbps = 48000000;
4350 else if (hdmi_encoded_link_bw.bits.BW_40Gbps)
4351 supported_bw_in_kbps = 40000000;
4352 else if (hdmi_encoded_link_bw.bits.BW_32Gbps)
4353 supported_bw_in_kbps = 32000000;
4354 else if (hdmi_encoded_link_bw.bits.BW_24Gbps)
4355 supported_bw_in_kbps = 24000000;
4356 else if (hdmi_encoded_link_bw.bits.BW_18Gbps)
4357 supported_bw_in_kbps = 18000000;
4358 else if (hdmi_encoded_link_bw.bits.BW_9Gbps)
4359 supported_bw_in_kbps = 9000000;
4360 }
4361
4362 return supported_bw_in_kbps;
4363 }
4364 #endif
4365
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week