lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111072223.tmVsnBDp-lkp@intel.com>
Date:   Sun, 7 Nov 2021 22:13:34 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dave Chinner <dchinner@...hat.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, "Darrick J. Wong" <djwong@...nel.org>
Subject: fs/xfs/xfs_icache.c:296:1: warning: unused function 'xfs_inew_wait'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b5013d084e03e82ceeab4db8ae8ceeaebe76b0eb
commit: ab23a7768739a23d21d8a16ca37dff96b1ca957a xfs: per-cpu deferred inode inactivation queues
date:   3 months ago
config: mips-randconfig-r031-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
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=ab23a7768739a23d21d8a16ca37dff96b1ca957a
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ab23a7768739a23d21d8a16ca37dff96b1ca957a
        # save the attached .config 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 fs/xfs/

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

All warnings (new ones prefixed by >>):

>> fs/xfs/xfs_icache.c:296:1: warning: unused function 'xfs_inew_wait'
   xfs_inew_wait(
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set noat
   .set push
   .set arch=r4000
   .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/cmpxchg.h", .line = 80, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $2 # __xchg_asm
   .set pop
   move $$1, ${3:z}
   .set arch=r4000
   sc $$1, $1
   beqz $$1, 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 cefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-cefc01fa65/bin
   clang-14: note: diagnostic msg:
   Makefile arch block drivers fs include kernel nr_bisected scripts source usr virt


vim +/xfs_inew_wait +296 fs/xfs/xfs_icache.c

ad438c4038968e Dave Chinner    2016-05-18  294  
7fdff52623b4df Darrick J. Wong 2021-05-31  295  static inline void
ae2c4ac2dd39b2 Brian Foster    2017-04-26 @296  xfs_inew_wait(
ae2c4ac2dd39b2 Brian Foster    2017-04-26  297  	struct xfs_inode	*ip)
ae2c4ac2dd39b2 Brian Foster    2017-04-26  298  {
ae2c4ac2dd39b2 Brian Foster    2017-04-26  299  	wait_queue_head_t *wq = bit_waitqueue(&ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  300  	DEFINE_WAIT_BIT(wait, &ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  301  
ae2c4ac2dd39b2 Brian Foster    2017-04-26  302  	do {
2141713616c652 Ingo Molnar     2017-03-05  303  		prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  304  		if (!xfs_iflags_test(ip, XFS_INEW))
ae2c4ac2dd39b2 Brian Foster    2017-04-26  305  			break;
ae2c4ac2dd39b2 Brian Foster    2017-04-26  306  		schedule();
ae2c4ac2dd39b2 Brian Foster    2017-04-26  307  	} while (true);
2141713616c652 Ingo Molnar     2017-03-05  308  	finish_wait(wq, &wait.wq_entry);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  309  }
ae2c4ac2dd39b2 Brian Foster    2017-04-26  310  

:::::: The code at line 296 was first introduced by commit
:::::: ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5 xfs: update ag iterator to support wait on new inodes

:::::: TO: Brian Foster <bfoster@...hat.com>
:::::: CC: Darrick J. Wong <darrick.wong@...cle.com>

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

Download attachment ".config.gz" of type "application/gzip" (32377 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ