mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* fs/xfs/xfs_icache.c:296:1: warning: unused function 'xfs_inew_wait'
@ 2021-11-07 14:13 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-07 14:13 UTC (permalink / raw)
  To: Dave Chinner; +Cc: llvm, kbuild-all, linux-kernel, Darrick J. Wong

[-- Attachment #1: Type: text/plain, Size: 4121 bytes --]

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@intel.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@redhat.com>
:::::: CC: Darrick J. Wong <darrick.wong@oracle.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32377 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread
* fs/xfs/xfs_icache.c:296:1: warning: unused function 'xfs_inew_wait'
@ 2021-11-21 16:30 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-21 16:30 UTC (permalink / raw)
  To: Dave Chinner; +Cc: llvm, kbuild-all, linux-kernel, Darrick J. Wong

[-- Attachment #1: Type: text/plain, Size: 4095 bytes --]

Hi Dave,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   923dcc5eb0c111eccd51cc7ce1658537e3c38b25
commit: ab23a7768739a23d21d8a16ca37dff96b1ca957a xfs: per-cpu deferred inode inactivation queues
date:   4 months ago
config: mips-randconfig-c004-20211119 (attached as .config)
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@intel.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 fefe20b99313d6b0738806d1504652c3b7edb9e0)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-fefe20b993/bin
   clang-14: note: diagnostic msg:
   Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound 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@redhat.com>
:::::: CC: Darrick J. Wong <darrick.wong@oracle.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34803 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-21 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-07 14:13 fs/xfs/xfs_icache.c:296:1: warning: unused function 'xfs_inew_wait' kernel test robot
2021-11-21 16:30 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®