[linux-next:master 11067/14048] fs/io-wq.c:668:20: warning: unused function 'io_wqe_need_worker'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   593ef1658ecf61d3619885bdbbcfffa3d1417891
commit: 685fe7feedb96771683437107ba72131410e2350 [11067/14048] io-wq: eliminate the need for a manager thread
config: mips-randconfig-r023-20210420 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project ca8eef7e3da8f750d7c7aa004fe426d1d34787ea)
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=685fe7feedb96771683437107ba72131410e2350
        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 685fe7feedb96771683437107ba72131410e2350
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

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

All warnings (new ones prefixed by >>):

>> fs/io-wq.c:668:20: warning: unused function 'io_wqe_need_worker'
   static inline bool io_wqe_need_worker(struct io_wqe int index)
   ^
   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 = 153, $); 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
   '
   clang-13: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 13.0.0 (git://gitmirror/llvm_project ca8eef7e3da8f750d7c7aa004fe426d1d34787ea)
   Target: mipsel-unknown-linux-gnu
   Thread model: posix
   InstalledDir: /opt/cross/clang-ca8eef7e3d/bin
   clang-13: note: diagnostic msg:
   Makefile arch block certs crypto drivers fs include init ipc kernel lib mm scripts security sound source usr virt


vim +/io_wqe_need_worker +668 fs/io-wq.c

771b53d033e866 Jens Axboe 2019-10-22  667  
c5def4ab849494 Jens Axboe 2019-11-07 @668  static inline bool io_wqe_need_worker(struct io_wqe *wqe, int index)
771b53d033e866 Jens Axboe 2019-10-22  669  	__must_hold(wqe->lock)
771b53d033e866 Jens Axboe 2019-10-22  670  {
c5def4ab849494 Jens Axboe 2019-11-07  671  	struct io_wqe_acct *acct = &wqe->acct[index];
771b53d033e866 Jens Axboe 2019-10-22  672  
613eeb600e3e63 Jens Axboe 2021-02-26  673  	if (acct->nr_workers && test_bit(IO_WQ_BIT_EXIT, &wqe->wq->state))
613eeb600e3e63 Jens Axboe 2021-02-26  674  		return false;
c5def4ab849494 Jens Axboe 2019-11-07  675  	/* if we have available workers or no work, no need */
021d1cdda3875b Jens Axboe 2019-11-14  676  	if (!hlist_nulls_empty(&wqe->free_list) || !io_wqe_run_queue(wqe))
771b53d033e866 Jens Axboe 2019-10-22  677  		return false;
c5def4ab849494 Jens Axboe 2019-11-07  678  	return acct->nr_workers < acct->max_workers;
771b53d033e866 Jens Axboe 2019-10-22  679  }
771b53d033e866 Jens Axboe 2019-10-22  680  

:::::: The code at line 668 was first introduced by commit
:::::: c5def4ab849494d3c97f6c9fc84b2ddb868fe78c io-wq: add support for bounded vs unbunded work

:::::: TO: Jens Axboe <axboe@xxxxxxxxx>
:::::: 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


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux