block/mq-deadline.c:274:12: warning: unused function 'dd_queued'
From: kernel test robot
Date: Thu Sep 02 2021 - 01:31:28 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7c636d4d20f8c5acfbfbc60f326fddb0e1cf5daa
commit: 7b05bf771084ff788243b78f51bc2c820730951c Revert "block/mq-deadline: Prioritize high-priority requests"
date: 6 days ago
config: mips-randconfig-r026-20210829 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 510e106fa8635e7f9c51c896180b971de6309b2f)
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/torvalds/linux.git/commit/?id=7b05bf771084ff788243b78f51bc2c820730951c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7b05bf771084ff788243b78f51bc2c820730951c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> block/mq-deadline.c:274:12: warning: unused function 'dd_queued'
static u32 dd_queued(struct deadline_data enum dd_prio prio)
^
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 = 165, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: lld $0, $1 # atomic64_add
daddu $0, $2
scd $0, $1
beqz $0, 1b
.set pop
'
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 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
Target: mips64-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-4b1fde8a2b/bin
clang-14: note: diagnostic msg:
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net nr_bisected scripts security sound source usr virt
vim +/dd_queued +274 block/mq-deadline.c
945ffb60c11dfb Jens Axboe 2017-01-14 272
38ba64d12d4cf9 Bart Van Assche 2021-06-17 273 /* Number of requests queued for a given priority level. */
38ba64d12d4cf9 Bart Van Assche 2021-06-17 @274 static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio)
38ba64d12d4cf9 Bart Van Assche 2021-06-17 275 {
38ba64d12d4cf9 Bart Van Assche 2021-06-17 276 return dd_sum(dd, inserted, prio) - dd_sum(dd, completed, prio);
38ba64d12d4cf9 Bart Van Assche 2021-06-17 277 }
38ba64d12d4cf9 Bart Van Assche 2021-06-17 278
:::::: The code at line 274 was first introduced by commit
:::::: 38ba64d12d4cf9fa260c45d7398e2a24afaceefa block/mq-deadline: Track I/O statistics
:::::: TO: Bart Van Assche <bvanassche@xxxxxxx>
:::::: CC: Jens Axboe <axboe@xxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip