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: <202111141403.hX62Njbf-lkp@intel.com>
Date:   Sun, 14 Nov 2021 14:55:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
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:321:1: warning: unused function 'xfs_inew_wait'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c8c109546a19613d323a319d0c921cb1f317e629
commit: 777eb1fa857ec38afd518b3adc25cfac0f4af13b xfs: remove xfs_dqrele_all_inodes
date:   3 months ago
config: mips-randconfig-r002-20211113 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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=777eb1fa857ec38afd518b3adc25cfac0f4af13b
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 777eb1fa857ec38afd518b3adc25cfac0f4af13b
        # 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 drivers/pci/controller/ 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:321:1: warning: unused function 'xfs_inew_wait'
   xfs_inew_wait(
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 27, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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 c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
   Target: mips64el-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-c3dddeeafb/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers fs include kernel nr_bisected scripts source usr virt


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

ad438c4038968e Dave Chinner    2016-05-18  319  
7fdff52623b4df Darrick J. Wong 2021-05-31  320  static inline void
ae2c4ac2dd39b2 Brian Foster    2017-04-26 @321  xfs_inew_wait(
ae2c4ac2dd39b2 Brian Foster    2017-04-26  322  	struct xfs_inode	*ip)
ae2c4ac2dd39b2 Brian Foster    2017-04-26  323  {
ae2c4ac2dd39b2 Brian Foster    2017-04-26  324  	wait_queue_head_t *wq = bit_waitqueue(&ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  325  	DEFINE_WAIT_BIT(wait, &ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  326  
ae2c4ac2dd39b2 Brian Foster    2017-04-26  327  	do {
2141713616c652 Ingo Molnar     2017-03-05  328  		prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  329  		if (!xfs_iflags_test(ip, XFS_INEW))
ae2c4ac2dd39b2 Brian Foster    2017-04-26  330  			break;
ae2c4ac2dd39b2 Brian Foster    2017-04-26  331  		schedule();
ae2c4ac2dd39b2 Brian Foster    2017-04-26  332  	} while (true);
2141713616c652 Ingo Molnar     2017-03-05  333  	finish_wait(wq, &wait.wq_entry);
ae2c4ac2dd39b2 Brian Foster    2017-04-26  334  }
ae2c4ac2dd39b2 Brian Foster    2017-04-26  335  

:::::: The code at line 321 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" (36024 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ