* [linux-next:master 9122/14381] drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'
@ 2022-03-25 22:55 kernel test robot
2022-03-26 9:25 ` Unsigned emails from Intel robot was " Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-03-25 22:55 UTC (permalink / raw)
To: Andrew Jeffery
Cc: llvm, kbuild-all, Linux Memory Management List, Pavel Machek,
Cédric Le Goater
Hi Andrew,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fd4fbb998102ef7812d594121fbabd2b10dced1b
commit: ca386253ff6fb86128a7c61e1c38ca91de38048d [9122/14381] leds: pca955x: Make the gpiochip always expose all pins
config: mips-buildonly-randconfig-r002-20220324 (https://download.01.org/0day-ci/archive/20220326/202203260634.OFB2IPFf-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d)
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=ca386253ff6fb86128a7c61e1c38ca91de38048d
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 ca386253ff6fb86128a7c61e1c38ca91de38048d
# 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 drivers/leds/
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/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'
static inline int pca95xx_num_led_regs(int bits)
^
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 = 103, $); 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://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/leds/.leds-pca955x.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=0xffffffff80001000 -DLINKER_LOAD_ADDRESS=0x80001000 -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-bcm47xx -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -Os -Wframe-larger-than=1024 -fno-stack-protector -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -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 drivers/leds -I ./drivers/leds -DKBUILD_MODFILE="drivers/leds/leds-pca955x" -DKBUILD_BASENAME="leds_pca955x" -DKBUILD_MODNAME="leds_pca955x" -D__KBUILD_MODNAME=kmod_leds_pca955x -c -o drivers/leds/leds-pca955x.o drivers/leds/leds-pca955x.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'drivers/leds/leds-pca955x.c'.
4. Running pass 'Mips Assembly Printer' on function '@pca955x_probe'
#0 0x00005590818433af Signals.cpp:0:0
#1 0x00005590818411d4 llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x34aa1d4)
#2 0x0000559081780b87 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x33e9b87)
#3 0x000055908183980e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x34a280e)
#4 0x000055907f43640b (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x109f40b)
#5 0x00005590817876ac llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x33f06ac)
#6 0x00005590824a3780 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x410c780)
#7 0x000055908249f6b4 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x41086b4)
#8 0x000055907feb17f7 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x1b1a7f7)
#9 0x0000559080b823dd llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
#10 0x0000559080fc9f67 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x2c32f67)
#11 0x0000559080fca0e1 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x2c330e1)
#12 0x0000559080fcac5f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x2c33c5f)
#13 0x0000559081b63777 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-0f6d9501cf/bin/clang-15+0x37cc777)
#14 0x00005590827c38d3 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x442c8d3)
#15 0x00005590832e5aa1 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x4f4eaa1)
#16 0x00005590827c2fb5 clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x442bfb5)
#17 0x00005590821bcaa1 clang::FrontendAction::Execute() (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x3e25aa1)
#18 0x000055908215233a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x3dbb33a)
#19 0x00005590822826cb (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x3eeb6cb)
#20 0x000055907f4379bc cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x10a09bc)
#21 0x000055907f43468b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
#22 0x0000559081fe8f45 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 0x0000559081780a43 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x33e9a43)
#24 0x0000559081fe983e 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 0x0000559081fbe037 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x3c27037)
#26 0x0000559081fbea17 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x3c27a17)
#27 0x0000559081fc8069 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x3c31069)
#28 0x000055907f38195f main (/opt/cross/clang-0f6d9501cf/bin/clang-15+0xfea95f)
#29 0x00007ff3071bbd0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
#30 0x000055907f4341aa _start (/opt/cross/clang-0f6d9501cf/bin/clang-15+0x109d1aa)
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 0f6d9501cf49ce02937099350d08f20c4af86f3d)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-0f6d9501cf/bin
clang-15: note: diagnostic msg:
Makefile arch drivers include kernel nr_bisected scripts source usr
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SSB_EMBEDDED
Depends on SSB && SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE
Selected by
- BCM47XX_SSB && BCM47XX
vim +/pca95xx_num_led_regs +149 drivers/leds/leds-pca955x.c
f46e9203d9a100 Nate Case 2008-07-16 147
f46e9203d9a100 Nate Case 2008-07-16 148 /* 4 bits per LED selector register */
f46e9203d9a100 Nate Case 2008-07-16 @149 static inline int pca95xx_num_led_regs(int bits)
f46e9203d9a100 Nate Case 2008-07-16 150 {
f46e9203d9a100 Nate Case 2008-07-16 151 return (bits + 3) / 4;
f46e9203d9a100 Nate Case 2008-07-16 152 }
f46e9203d9a100 Nate Case 2008-07-16 153
:::::: The code at line 149 was first introduced by commit
:::::: f46e9203d9a100bae216cc06e17f2e77351aa8d8 leds: Add support for Philips PCA955x I2C LED drivers
:::::: TO: Nate Case <ncase@xes-inc.com>
:::::: CC: Richard Purdie <rpurdie@rpsys.net>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Unsigned emails from Intel robot was Re: [linux-next:master 9122/14381] drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'
2022-03-25 22:55 [linux-next:master 9122/14381] drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs' kernel test robot
@ 2022-03-26 9:25 ` Pavel Machek
2022-03-28 5:21 ` [kbuild-all] " Chen, Rong A
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2022-03-26 9:25 UTC (permalink / raw)
To: kernel test robot, kernel list
Cc: Andrew Jeffery, llvm, kbuild-all, Linux Memory Management List,
Cédric Le Goater
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
Hey robot!
> FYI, the error/warning still remains.
Could you please sign emails with real name of person responsible for
this? Was there human writing this?
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
I'd preffer to credit human if human was involved.
> >> drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'
> static inline int pca95xx_num_led_regs(int bits)
> ^
> fatal error: error in backend: Nested variants found in inline asm string: ' .set push
> .set mips64r2
This sounds like an compiler problem, not a kernel problem, right?
Best regards,
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [kbuild-all] Unsigned emails from Intel robot was Re: [linux-next:master 9122/14381] drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'
2022-03-26 9:25 ` Unsigned emails from Intel robot was " Pavel Machek
@ 2022-03-28 5:21 ` Chen, Rong A
0 siblings, 0 replies; 3+ messages in thread
From: Chen, Rong A @ 2022-03-28 5:21 UTC (permalink / raw)
To: Pavel Machek, kernel test robot, kernel list
Cc: Andrew Jeffery, llvm, kbuild-all, Linux Memory Management List,
Cédric Le Goater
On 3/26/2022 5:25 PM, Pavel Machek wrote:
> Hey robot!
>
>> FYI, the error/warning still remains.
>
> Could you please sign emails with real name of person responsible for
> this? Was there human writing this?
Hi Pavel,
The report was generated automatically, we continue to optimize the bot
to output the right result.
>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>
> I'd preffer to credit human if human was involved.
>
>>>> drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'
>> static inline int pca95xx_num_led_regs(int bits)
>> ^
>> fatal error: error in backend: Nested variants found in inline asm string: ' .set push
>> .set mips64r2
>
> This sounds like an compiler problem, not a kernel problem, right?
Yes, it's not related to your commit, sorry for the inconvenience,
we'll take a look at it to avoid false positive next time.
Best Regards,
Rong Chen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-28 5:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-25 22:55 [linux-next:master 9122/14381] drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs' kernel test robot
2022-03-26 9:25 ` Unsigned emails from Intel robot was " Pavel Machek
2022-03-28 5:21 ` [kbuild-all] " Chen, Rong A
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).